fix: update stake program api

This commit is contained in:
Justin Starry
2020-02-03 16:57:05 +08:00
committed by Michael Vines
parent 3482953757
commit 7181d3aeea
3 changed files with 7 additions and 58 deletions

View File

@@ -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();