add rewards syscall, groom some others (#4740)

This commit is contained in:
Rob Walker
2019-06-19 19:46:47 -07:00
committed by GitHub
parent 63503ad589
commit 7ea522e851
7 changed files with 100 additions and 43 deletions

View File

@@ -118,7 +118,11 @@ macro_rules! solana_name_id(
#[cfg(test)]
#[test]
fn test_name_id() {
assert_eq!(id().to_string(), $name);
// un-comment me to see what the id should look like, given a name
// if id().to_string() != $name {
// panic!("id for `{}` should be `{:?}`", $name, bs58::decode($name).into_vec().unwrap());
// }
assert_eq!(id().to_string(), $name)
}
)
);