Add support for SDK sysvar types (#5876)

This commit is contained in:
Jack May
2019-09-10 18:53:02 -07:00
committed by GitHub
parent 772ee4b29d
commit 1853771930
19 changed files with 124 additions and 75 deletions

View File

@@ -147,7 +147,7 @@ fn test_stake_account_delegate() {
let rewards_account = bank
.get_account(&sysvar::rewards::id())
.expect("account not found");
assert_matches!(Rewards::from(&rewards_account), Some(_));
assert_matches!(Rewards::from_account(&rewards_account), Some(_));
// Redeem the credit
let bank_client = BankClient::new_shared(&bank);