Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Commit 4d925a8

Browse files
author
Jan Xie
committed
unneccessary hardfork check
1 parent 0c1dd60 commit 4d925a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/ethereum/external_call.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,8 @@ def create(msg)
114114
if res.true?
115115
return 1, gas, msg.to if dat.empty?
116116

117-
gcost = if post_hardfork?(:spurious_dragon)
118-
dat.size > Constant::CONTRACT_CODE_SIZE_LIMIT ?
117+
gcost = dat.size > Constant::CONTRACT_CODE_SIZE_LIMIT ?
119118
Constant::UINT_MAX : dat.size * Opcodes::GCONTRACTBYTE
120-
else
121-
dat.size * Opcodes::GCONTRACTBYTE
122-
end
123119
if gas >= gcost
124120
gas -= gcost
125121
else

0 commit comments

Comments
 (0)