Skip to content

Commit

Permalink
Added minor state changes to the gummyroll contract (solana-labs#106)
Browse files Browse the repository at this point in the history
* Added minor state changes to the gummyroll contract

* client fixes
  • Loading branch information
jarry-xiao authored Jun 16, 2022
1 parent 72a99d1 commit 3383ca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/sdk/gummyroll/accounts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type MerkleRollHeader = {
maxBufferSize: number; // u32
authority: PublicKey;
appendAuthority: PublicKey;
creationSlot: BN;
};

type MerkleRoll = {
Expand Down Expand Up @@ -83,10 +84,11 @@ export function decodeMerkleRoll(buffer: Buffer): OnChainMerkleRoll {
maxDepth: reader.readU32(),
authority: readPublicKey(reader),
appendAuthority: readPublicKey(reader),
creationSlot: reader.readU64(),
};

// Decode MerkleRoll
let sequenceNumber = reader.readU128();
let sequenceNumber = reader.readU64();
let activeIndex = reader.readU64().toNumber();
let bufferSize = reader.readU64().toNumber();

Expand Down

0 comments on commit 3383ca4

Please sign in to comment.