We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1dd60 commit 4d925a8Copy full SHA for 4d925a8
lib/ethereum/external_call.rb
@@ -114,12 +114,8 @@ def create(msg)
114
if res.true?
115
return 1, gas, msg.to if dat.empty?
116
117
- gcost = if post_hardfork?(:spurious_dragon)
118
- dat.size > Constant::CONTRACT_CODE_SIZE_LIMIT ?
+ gcost = dat.size > Constant::CONTRACT_CODE_SIZE_LIMIT ?
119
Constant::UINT_MAX : dat.size * Opcodes::GCONTRACTBYTE
120
- else
121
- dat.size * Opcodes::GCONTRACTBYTE
122
- end
123
if gas >= gcost
124
gas -= gcost
125
else
0 commit comments