You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to try not use #[tokio::main] in my project . it show error follow this.
{unknown}
no method named push found for struct CallFuture in the current scope
method not found in CallFuture<Vec<H160>, Pin<Box<dyn std::future::Future<Output = Result<serde_json::value::Value, web3::Error>> + std::marker::Send>>>rustcE0599
my code is
let mut accounts = web3.eth().accounts();
accounts.push(hex!("0x5940C8F24c1c6ee04e0F7E1f44546d71859Cc3b7").into());
Is there a way I can run successfully without # [tokio::main] and async?
The text was updated successfully, but these errors were encountered:
I want to try not use #[tokio::main] in my project . it show error follow this.
{unknown}
no method named
push
found for structCallFuture
in the current scopemethod not found in
CallFuture<Vec<H160>, Pin<Box<dyn std::future::Future<Output = Result<serde_json::value::Value, web3::Error>> + std::marker::Send>>>
rustcE0599my code is
let mut accounts = web3.eth().accounts();
accounts.push(hex!("0x5940C8F24c1c6ee04e0F7E1f44546d71859Cc3b7").into());
Is there a way I can run successfully without # [tokio::main] and async?
The text was updated successfully, but these errors were encountered: