test working fine

pull/697/head
aniket-engg 4 years ago committed by Aniket
parent 0f2ed9f69e
commit 32402380e0
  1. 5
      libs/remix-debug/src/solidity-decoder/types/DynamicByteArray.ts

@ -18,9 +18,8 @@ export class DynamicByteArray extends RefType {
console.log(e) console.log(e)
return { value: '<decoding failed - ' + e.message + '>', type: this.typeName } return { value: '<decoding failed - ' + e.message + '>', type: this.typeName }
} }
const bn = new BN(value, 16) const length = new BN(value, 16)
if (bn.testn(0)) { if (length.testn(0)) {
const length: BN = bn.div(new BN(2))
let dataPos = new BN(sha3256(location.slot).replace('0x', ''), 16) let dataPos = new BN(sha3256(location.slot).replace('0x', ''), 16)
let ret = '' let ret = ''
let currentSlot = '0x' let currentSlot = '0x'

Loading…
Cancel
Save