Skip to content

Commit

Permalink
Fixed SupernetId reading
Browse files Browse the repository at this point in the history
  • Loading branch information
alekswaslet committed Jun 20, 2024
1 parent b6458d0 commit 241e0a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transaction/platform/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export class AddPermissionlessValidatorTransaction extends BaseTransaction {
const reader = buffer.createReader()
reader.skip(baseTx.serialize().length)
const validator = Validator.parse(reader.read(ValidatorSize))
const supernetId = new SupernetId(reader.readString(SupernetIdSize))
const supernetId = new SupernetId(reader.read(SupernetIdSize).toCB58())
const signer = PrimarySigner.parse(reader.read(PrimarySignerSize))
const stakeLength = reader.readUInt32()
const stakes: TransferableOutput[] = []
Expand Down Expand Up @@ -593,7 +593,7 @@ export class AddPermissionlessDelegatorTransaction extends BaseTransaction {
const reader = buffer.createReader()
reader.skip(baseTx.serialize().length)
const validator = Validator.parse(reader.read(ValidatorSize))
const supernetId = new SupernetId(reader.readString(SupernetIdSize))
const supernetId = new SupernetId(reader.read(SupernetIdSize).toCB58())
const stakeLength = reader.readUInt32()
const stakes: TransferableOutput[] = []
for (let i = 0; i < stakeLength; i++) {
Expand Down

0 comments on commit 241e0a1

Please sign in to comment.