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 49f6301 commit a90b936Copy full SHA for a90b936
lib/opFns.js
@@ -546,13 +546,12 @@ module.exports = {
546
options.gasLimit.iadd(new BN(fees.callStipend.v))
547
}
548
549
- checkCallMemCost(runState, options, localOpts)
550
-
551
stateManager.exists(toAddress, function (err, exists) {
552
if (err) {
553
done(err)
554
return
555
+
556
if (!exists) {
557
try {
558
subGas(runState, new BN(fees.callNewAccountGas.v))
@@ -561,6 +560,14 @@ module.exports = {
561
560
562
563
564
+ try {
565
+ checkCallMemCost(runState, options, localOpts)
566
+ } catch (e) {
567
+ done(e.error)
568
+ return
569
+ }
570
571
makeCall(runState, options, localOpts, done)
572
})
573
},
0 commit comments