|
|
@ -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' |
|
|
|