Skip to content

Commit

Permalink
Merge pull request #137 from uprendis/feature/no-api-sender-balance-i…
Browse files Browse the repository at this point in the history
…ncrease

Erase increasing sender's balance in API
  • Loading branch information
uprendis authored Jul 16, 2021
2 parents 5e32e8d + f575dfb commit 83d3163
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 @@ -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 {
Expand Down

0 comments on commit 83d3163

Please sign in to comment.