mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
fix build
This commit is contained in:
parent
eb7f934f26
commit
fbe136a45e
1 changed files with 2 additions and 2 deletions
|
|
@ -316,7 +316,7 @@ func runCmd(ctx *cli.Context) error {
|
|||
input = append(code, input...)
|
||||
execFunc = func() ([]byte, uint64, error) {
|
||||
// don't mutate the state!
|
||||
runtimeConfig.State = prestate.Copy().(*state.StateDB)
|
||||
runtimeConfig.State = prestate.Copy()
|
||||
output, _, gasLeft, err := runtime.Create(input, &runtimeConfig)
|
||||
return output, gasLeft, err
|
||||
}
|
||||
|
|
@ -326,7 +326,7 @@ func runCmd(ctx *cli.Context) error {
|
|||
}
|
||||
execFunc = func() ([]byte, uint64, error) {
|
||||
// don't mutate the state!
|
||||
runtimeConfig.State = prestate.Copy().(*state.StateDB)
|
||||
runtimeConfig.State = prestate.Copy()
|
||||
output, gasLeft, err := runtime.Call(receiver, input, &runtimeConfig)
|
||||
return output, initialGas - gasLeft, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue