From c113ff5027afd42b48bf87ca520c992e27721571 Mon Sep 17 00:00:00 2001 From: danielailie Date: Thu, 12 Sep 2024 16:32:32 +0300 Subject: [PATCH] Fix variable name --- src/smartcontracts/codec/managedDecimalSigned.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/smartcontracts/codec/managedDecimalSigned.ts b/src/smartcontracts/codec/managedDecimalSigned.ts index 6e79900d..0f92fd7e 100644 --- a/src/smartcontracts/codec/managedDecimalSigned.ts +++ b/src/smartcontracts/codec/managedDecimalSigned.ts @@ -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); }