fix: update stake program api
This commit is contained in:
committed by
Michael Vines
parent
3482953757
commit
7181d3aeea
@@ -87,7 +87,7 @@ test('delegate', () => {
|
||||
vote.publicKey,
|
||||
);
|
||||
|
||||
expect(transaction.keys).toHaveLength(5);
|
||||
expect(transaction.keys).toHaveLength(6);
|
||||
expect(transaction.programId).toEqual(StakeProgram.programId);
|
||||
// TODO: Validate transaction contents more
|
||||
});
|
||||
@@ -111,18 +111,6 @@ test('authorize', () => {
|
||||
// TODO: Validate transaction contents more
|
||||
});
|
||||
|
||||
test('redeemVoteCredits', () => {
|
||||
const stake = new Account();
|
||||
const vote = new Account();
|
||||
let transaction;
|
||||
|
||||
transaction = StakeProgram.redeemVoteCredits(stake.publicKey, vote.publicKey);
|
||||
|
||||
expect(transaction.keys).toHaveLength(5);
|
||||
expect(transaction.programId).toEqual(StakeProgram.programId);
|
||||
// TODO: Validate transaction contents more
|
||||
});
|
||||
|
||||
test('split', () => {
|
||||
const stake = new Account();
|
||||
const authorized = new Account();
|
||||
|
Reference in New Issue
Block a user