Commit 32402380 authored by aniket-engg's avatar aniket-engg Committed by Aniket

test working fine

parent 0f2ed9f6
...@@ -18,9 +18,8 @@ export class DynamicByteArray extends RefType { ...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment