Skip to content

Commit

Permalink
erase setting sender's balance in API to max uint256
Browse files Browse the repository at this point in the history
  • Loading branch information
uprendis committed Jul 16, 2021
1 parent d30cb5b commit 3943f9d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gossip/ethapi_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -301,7 +300,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) (*vm.EVM, func() error, error) {
state.SetBalance(msg.From(), math.MaxBig256)
vmError := func() error { return nil }

context := evmcore.NewEVMContext(msg, header, b.state, nil)
Expand Down

0 comments on commit 3943f9d

Please sign in to comment.