File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/test/scala/io/iohk/ethereum/vm Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,17 @@ import Fixtures.blockchainConfig
1919
2020class MagnetoCallOpFixture (config : EvmConfig )
2121 extends CallOpFixture (config, MockWorldState (touchedAccounts = Set .empty)) {
22+
2223 override val fakeHeader : BlockHeader =
2324 BlockFixtures .ValidBlock .header.copy(number = Fixtures .MagnetoBlockNumber , unixTimestamp = 0 )
25+
26+ override val requiredGas : BigInt = {
27+ val storageCost = 3 * (config.feeSchedule.G_sset + config.feeSchedule.G_cold_account_access )
28+ val memCost = config.calcMemCost(0 , 0 , 32 )
29+ val copyCost = config.feeSchedule.G_copy * wordsForBytes(32 )
30+
31+ extCode.linearConstGas(config) + storageCost + memCost + copyCost
32+ }
2433}
2534
2635class CallOpcodesPostEip2929Spec
You can’t perform that action at this time.
0 commit comments