Skip to content

Commit

Permalink
fix amounts to mint and deposit, swap order bytes (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcos Oliva <[email protected]>
  • Loading branch information
spotlight301 and marcos74 authored Jan 4, 2023
1 parent 809e3fe commit 3faa98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export function bigNumberToI128(value: BigNumber): SorobanClient.xdr.ScVal {
padded[0] |= 0x80;
}

const hi = new xdr.Uint64(padded[0], padded[1]);
const lo = new xdr.Uint64(padded[2], padded[3]);
const hi = new xdr.Uint64(padded[1], padded[0]);
const lo = new xdr.Uint64(padded[3], padded[2]);
return xdr.ScVal.scvObject(xdr.ScObject.scoI128(new xdr.Int128Parts({lo, hi})));
}

Expand Down

0 comments on commit 3faa98e

Please sign in to comment.