Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Sep 12, 2024
1 parent f15a44b commit c113ff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/smartcontracts/codec/managedDecimalSigned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export class ManagedDecimalSignedCodec {
}

if (type.isVariable()) {
const bigUintSize = buffer.length - SizeOfU32;
const bigintSize = buffer.length - SizeOfU32;

const [value] = this.binaryCodec.decodeNested(buffer.slice(0, bigUintSize), new BigIntType());
const scale = buffer.readUInt32BE(bigUintSize);
const [value] = this.binaryCodec.decodeNested(buffer.slice(0, bigintSize), new BigIntType());
const scale = buffer.readUInt32BE(bigintSize);

return new ManagedDecimalSignedValue(value.valueOf().shiftedBy(-scale), scale);
}
Expand Down

0 comments on commit c113ff5

Please sign in to comment.