Closed shravanshetty1 closed 2 years ago
https://github.com/shravanshetty1/tokenitis - source code for reference
you can try to use lazy_static. Add it to Cargo.toml and then in you test file in the global scope:
use lazy_static::lazy_static;
lazy_static! {
pub static ref client: RpcClient = RpcClient::new("http://localhost:8899".to_string());
}
let me know if that worked
@askibin I opened the issue assuming it wasnt intended - if it is intended, I can close the issue
Trying to write a test for my smart contract, encountering issues with "spl-token-client" crate.