diff --git a/src/fixtures/pvm.ts b/src/fixtures/pvm.ts index ae4e052ae..1e2f2170d 100644 --- a/src/fixtures/pvm.ts +++ b/src/fixtures/pvm.ts @@ -283,7 +283,7 @@ export const transformSubnetTx = () => int(), int(), int(), - int(), + bigIntPr(), byte(), int(), input(), @@ -303,7 +303,7 @@ export const transformSubnetTxBytes = () => intBytes(), intBytes(), intBytes(), - intBytes(), + bigIntPrBytes(), byteByte(), intBytes(), bytesForInt(10), diff --git a/src/serializable/pvm/transformSubnetTx.ts b/src/serializable/pvm/transformSubnetTx.ts index c16f93198..0a1f41a88 100644 --- a/src/serializable/pvm/transformSubnetTx.ts +++ b/src/serializable/pvm/transformSubnetTx.ts @@ -31,7 +31,7 @@ export class TransformSubnetTx extends AbstractSubnetTx { public readonly minStakeDuration: Int, public readonly maxStakeDuration: Int, public readonly minDelegationFee: Int, - public readonly minDelegatorStake: Int, + public readonly minDelegatorStake: BigIntPr, public readonly maxValidatorWeightFactor: Byte, public readonly uptimeRequirement: Int, public readonly subnetAuth: Serializable, @@ -80,7 +80,7 @@ export class TransformSubnetTx extends AbstractSubnetTx { Int, Int, Int, - Int, + BigIntPr, Byte, Int, Codec, diff --git a/src/utils/validateBurnedAmount/validateStaticBurnedAmount.test.ts b/src/utils/validateBurnedAmount/validateStaticBurnedAmount.test.ts index ed31a4176..5efb0b54b 100644 --- a/src/utils/validateBurnedAmount/validateStaticBurnedAmount.test.ts +++ b/src/utils/validateBurnedAmount/validateStaticBurnedAmount.test.ts @@ -222,7 +222,7 @@ describe('validateStaticBurnedAmount', () => { 1, 2, 3, - 4, + 4n, 5, 6, [0, 2], diff --git a/src/vms/pvm/builder.test.ts b/src/vms/pvm/builder.test.ts index 93c762e27..895bd2a94 100644 --- a/src/vms/pvm/builder.test.ts +++ b/src/vms/pvm/builder.test.ts @@ -789,7 +789,7 @@ describe('pvmBuilder', () => { 1, 2, 3, - 4, + 4n, 5, 6, subnetAuth, @@ -818,7 +818,7 @@ describe('pvmBuilder', () => { new Int(1), new Int(2), new Int(3), - new Int(4), + new BigIntPr(4n), new Byte(hexToBuffer('0x5')), new Int(6), Input.fromNative(subnetAuth), diff --git a/src/vms/pvm/builder.ts b/src/vms/pvm/builder.ts index a962b14a3..ff80b3087 100644 --- a/src/vms/pvm/builder.ts +++ b/src/vms/pvm/builder.ts @@ -788,7 +788,7 @@ export function newTransformSubnetTx( minStakeDuration: number, maxStakeDuration: number, minDelegationFee: number, - minDelegatorStake: number, + minDelegatorStake: bigint, maxValidatorWeightFactor: number, uptimeRequirement: number, subnetAuth: number[], @@ -825,7 +825,7 @@ export function newTransformSubnetTx( new Int(minStakeDuration), new Int(maxStakeDuration), new Int(minDelegationFee), - new Int(minDelegatorStake), + new BigIntPr(minDelegatorStake), new Byte(hexToBuffer(maxValidatorWeightFactor.toString(16))), new Int(uptimeRequirement), Input.fromNative(subnetAuth),