Skip to content

Commit

Permalink
fix: change minDelegatorStake to uint64 (#903)
Browse files Browse the repository at this point in the history
* fix: change minDelegatorStake to uint64

* fix: type in builder
  • Loading branch information
bferenc authored Nov 7, 2024
1 parent ce1475b commit 1ecf74e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/fixtures/pvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export const transformSubnetTx = () =>
int(),
int(),
int(),
int(),
bigIntPr(),
byte(),
int(),
input(),
Expand All @@ -303,7 +303,7 @@ export const transformSubnetTxBytes = () =>
intBytes(),
intBytes(),
intBytes(),
intBytes(),
bigIntPrBytes(),
byteByte(),
intBytes(),
bytesForInt(10),
Expand Down
4 changes: 2 additions & 2 deletions src/serializable/pvm/transformSubnetTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -80,7 +80,7 @@ export class TransformSubnetTx extends AbstractSubnetTx {
Int,
Int,
Int,
Int,
BigIntPr,
Byte,
Int,
Codec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe('validateStaticBurnedAmount', () => {
1,
2,
3,
4,
4n,
5,
6,
[0, 2],
Expand Down
4 changes: 2 additions & 2 deletions src/vms/pvm/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ describe('pvmBuilder', () => {
1,
2,
3,
4,
4n,
5,
6,
subnetAuth,
Expand Down Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions src/vms/pvm/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ export function newTransformSubnetTx(
minStakeDuration: number,
maxStakeDuration: number,
minDelegationFee: number,
minDelegatorStake: number,
minDelegatorStake: bigint,
maxValidatorWeightFactor: number,
uptimeRequirement: number,
subnetAuth: number[],
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 1ecf74e

Please sign in to comment.