We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PrecompileEnvironment.Value()
1 parent abd110e commit d2697b1Copy full SHA for d2697b1
core/vm/environment.libevm.go
@@ -39,7 +39,7 @@ type environment struct {
39
40
func (e *environment) Gas() uint64 { return e.self.Gas }
41
func (e *environment) UseGas(gas uint64) bool { return e.self.UseGas(gas) }
42
-func (e *environment) Value() *uint256.Int { return e.self.Value() }
+func (e *environment) Value() *uint256.Int { return new(uint256.Int).Set(e.self.Value()) }
43
44
func (e *environment) ChainConfig() *params.ChainConfig { return e.evm.chainConfig }
45
func (e *environment) Rules() params.Rules { return e.evm.chainRules }
0 commit comments