mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
test fixes
This commit is contained in:
parent
37bb0e229b
commit
a0b1ec8d46
3 changed files with 4 additions and 2 deletions
|
|
@ -575,6 +575,7 @@ func (s *stateObject) deepCopy(db *StateDB) *stateObject {
|
||||||
dirtyCode: s.dirtyCode,
|
dirtyCode: s.dirtyCode,
|
||||||
selfDestructed: s.selfDestructed,
|
selfDestructed: s.selfDestructed,
|
||||||
newContract: s.newContract,
|
newContract: s.newContract,
|
||||||
|
txPreBalance: s.txPreBalance.Clone(),
|
||||||
}
|
}
|
||||||
|
|
||||||
switch s.trie.(type) {
|
switch s.trie.(type) {
|
||||||
|
|
|
||||||
|
|
@ -469,6 +469,7 @@ func TestEIP8037MaxRegularGasValidation(t *testing.T) {
|
||||||
Amsterdam: params.DefaultOsakaBlobConfig,
|
Amsterdam: params.DefaultOsakaBlobConfig,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
rules = config.Rules(common.Big0, true, 0)
|
||||||
signer = types.LatestSigner(config)
|
signer = types.LatestSigner(config)
|
||||||
key1, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
key1, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
||||||
)
|
)
|
||||||
|
|
@ -486,7 +487,7 @@ func TestEIP8037MaxRegularGasValidation(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify that floor data gas exceeds MaxTxGas
|
// Verify that floor data gas exceeds MaxTxGas
|
||||||
floorGas, err := FloorDataGas(largeData)
|
floorGas, err := FloorDataGas(rules, largeData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Failed to calculate floor data gas: %v", err)
|
t.Fatalf("Failed to calculate floor data gas: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ func (tt *TransactionTest) Run() error {
|
||||||
}
|
}
|
||||||
// Intrinsic cost
|
// Intrinsic cost
|
||||||
// TODO (MariusVanDerWijden): correctly set this for post-amsterdam tests.
|
// TODO (MariusVanDerWijden): correctly set this for post-amsterdam tests.
|
||||||
cost, err := core.IntrinsicGas(tx.Data(), tx.AccessList(), tx.SetCodeAuthorizations(), tx.To() == nil, *rules, 0)
|
cost, err := core.IntrinsicGas(tx.Data(), tx.AccessList(), tx.SetCodeAuthorizations(), tx.To() == nil, rules, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue