diff --git a/libs/remix-debug/src/solidity-decoder/types/DynamicByteArray.ts b/libs/remix-debug/src/solidity-decoder/types/DynamicByteArray.ts index 917855c42a..5ac37c1ea2 100644 --- a/libs/remix-debug/src/solidity-decoder/types/DynamicByteArray.ts +++ b/libs/remix-debug/src/solidity-decoder/types/DynamicByteArray.ts @@ -18,9 +18,8 @@ export class DynamicByteArray extends RefType { console.log(e) return { value: '', type: this.typeName } } - const bn = new BN(value, 16) - if (bn.testn(0)) { - const length: BN = bn.div(new BN(2)) + const length = new BN(value, 16) + if (length.testn(0)) { let dataPos = new BN(sha3256(location.slot).replace('0x', ''), 16) let ret = '' let currentSlot = '0x'