pull/5370/head
yann300 4 years ago
parent 521642eb20
commit 98c760748e
  1. 2
      libs/remix-lib/src/execution/txRunner.ts

@ -120,7 +120,7 @@ export class TxRunner {
// for initialization fields and their types
if (!value) value = 0
if (typeof value === 'string') {
if (value.startsWith('0x')) value = new BN(value.replace('0x', ''), 'hex')
if (value.startsWith('0x')) value = new BN(value.replace('0x', ''), 'hex')
else {
try {
value = new BN(value, 10)

Loading…
Cancel
Save