Skip to content

Commit

Permalink
fix: vault scheme (#87)
Browse files Browse the repository at this point in the history
* fix: amount args scheme

* fix: remove unused param

* fix: numberOfShares scheme

* fix: numberOfShares scheme, update tests
  • Loading branch information
dkchv authored Dec 2, 2021
1 parent 2992efe commit 5194774
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/programs/vault/accounts/Vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class AmountArgs extends Borsh.Data<{
}> {
static readonly SCHEMA = this.struct([
['instruction', 'u8'],
['amount', 'u8'],
['amount', 'u64'],
]);

instruction: number;
Expand All @@ -28,7 +28,7 @@ export class NumberOfShareArgs extends Borsh.Data<{
}> {
static readonly SCHEMA = this.struct([
['instruction', 'u8'],
['numberOfShares', 'u8'],
['numberOfShares', 'u64'],
]);

instruction: number;
Expand Down
1 change: 0 additions & 1 deletion src/programs/vault/transactions/AddTokenToInactiveVault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { VaultInstructions } from '../VaultProgram';
type AddTokenToInactiveVaultParams = {
vault: PublicKey;
vaultAuthority: PublicKey;
tokenMint: PublicKey;
tokenAccount: PublicKey;
tokenStoreAccount: PublicKey;
transferAuthority: PublicKey;
Expand Down
Loading

0 comments on commit 5194774

Please sign in to comment.