Skip to content

Commit

Permalink
Don't return anything from transfer precompile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
karlb committed Jul 17, 2024
1 parent 8cd02d7 commit 31a744b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/celo_contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 31a744b

Please sign in to comment.