Skip to content

Commit 750d77d

Browse files
authored
chore: cleanup deprecated BalanceChangeEntry (cosmos#506)
* chore: align balance change reason for tracing for more info, https://github.com/ethereum/go-ethereum/blob/v1.16.2/core/evm.go#L143 * cleanup deprecated BalanceChangeEntry for more info, https://github.com/cosmos/evm/pull/201/files * Revert "chore: align balance change reason for tracing" This reverts commit 07a628c.
1 parent 2d3df2b commit 750d77d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

precompiles/common/precompile.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"github.com/ethereum/go-ethereum/common"
88
"github.com/ethereum/go-ethereum/core/tracing"
99
"github.com/ethereum/go-ethereum/core/vm"
10-
"github.com/holiman/uint256"
1110

1211
"github.com/cosmos/evm/x/vm/statedb"
1312

@@ -35,16 +34,6 @@ const (
3534
Add
3635
)
3736

38-
type BalanceChangeEntry struct {
39-
Account common.Address
40-
Amount *uint256.Int
41-
Op Operation
42-
}
43-
44-
func NewBalanceChangeEntry(acc common.Address, amt *uint256.Int, op Operation) BalanceChangeEntry {
45-
return BalanceChangeEntry{acc, amt, op}
46-
}
47-
4837
// RequiredGas calculates the base minimum required gas for a transaction or a query.
4938
// It uses the method ID to determine if the input is a transaction or a query and
5039
// uses the Cosmos SDK gas config flat cost and the flat per byte cost * len(argBz) to calculate the gas.

0 commit comments

Comments
 (0)