From f575dfb405b3aa3dafe9ddaf4fd1b193110ce9e2 Mon Sep 17 00:00:00 2001 From: Egor Lysenko Date: Fri, 16 Jul 2021 11:01:46 +0300 Subject: [PATCH] erase setting sender's balance in API to max uint256 --- gossip/ethapi_backend.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/gossip/ethapi_backend.go b/gossip/ethapi_backend.go index d17d66000..4473bfab9 100644 --- a/gossip/ethapi_backend.go +++ b/gossip/ethapi_backend.go @@ -12,7 +12,6 @@ import ( "github.com/Fantom-foundation/lachesis-base/inter/pos" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" @@ -302,7 +301,6 @@ func (b *EthAPIBackend) GetTd(_ common.Hash) *big.Int { } func (b *EthAPIBackend) GetEVM(ctx context.Context, msg evmcore.Message, state *state.StateDB, header *evmcore.EvmHeader, vmConfig *vm.Config) (*vm.EVM, func() error, error) { - state.SetBalance(msg.From(), math.MaxBig256) vmError := func() error { return nil } if vmConfig == nil {