Skip to content

Commit ba04275

Browse files
authored
chore: tests maker hooks (#15)
* chore: tests maker hooks * Update swap-vm.spec.ts * fix(swap-vm): taker traits correct decode
1 parent 0a6eac5 commit ba04275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/swap-vm/src/swap-vm/taker-traits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class TakerTraits {
173173
static decode(packed: HexString): TakerTraits {
174174
const iter = BytesIter.BigInt(packed.toString())
175175

176-
const offsets = Array.from({ length: 9 }, () => Number(iter.nextUint16()))
176+
const offsets = Array.from({ length: 9 }, () => Number(iter.nextUint16())).reverse()
177177
const flags = new BN(iter.nextUint16())
178178

179179
const dataStr = trim0x(packed.toString()).slice(40)

0 commit comments

Comments
 (0)