From 31a744b152c59cab3d95abee696514b6dd42b0c2 Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Wed, 17 Jul 2024 15:27:26 +0200 Subject: [PATCH] Don't return anything from transfer precompile The return value is not used and there is not point in returning the input (which is the current behavior). Not returning anything also saves some gas. --- core/vm/celo_contracts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/celo_contracts.go b/core/vm/celo_contracts.go index 8310a69c30..f5f9b44c33 100644 --- a/core/vm/celo_contracts.go +++ b/core/vm/celo_contracts.go @@ -97,5 +97,5 @@ func (c *transfer) Run(input []byte, ctx *celoPrecompileContext) ([]byte, error) ctx.Transfer(ctx.evm.StateDB, from, to, valueU256) - return input, nil + return nil, nil }