fix removing 0x

pull/5370/head
yann300 2 years ago
parent 03e668bf91
commit f77fd32d87
  1. 1
      libs/remix-debug/src/solidity-decoder/types/util.ts

@ -59,6 +59,7 @@ export function toBN (value) {
return value
} else if (value.match && value.match(/^(0x)?([a-f0-9]*)$/)) {
value = unpadHexString(value)
value = value.replace('0x', '')
value = new BN(value === '' ? '0' : value, 16)
} else if (!isNaN(value)) {
value = new BN(value)

Loading…
Cancel
Save