Hi there, I cannot resolve problem with type mismatch for prvk. I haven't found any example how to perform more complex call for contract. What am I doing wrong ?
use secp256k1::SecretKey;
let prvk = SecretKey::from_str(pkey.as_str()).unwrap();
let withdraw_res = matic.signed_call(
"withdraw",
(),
Options::default(),
&prvk)
.await
.unwrap();
Hi there, I cannot resolve problem with type mismatch for prvk. I haven't found any example how to perform more complex call for contract. What am I doing wrong ?
use secp256k1::SecretKey;
let prvk = SecretKey::from_str(pkey.as_str()).unwrap();
let withdraw_res = matic.signed_call( "withdraw", (), Options::default(), &prvk) .await .unwrap();
Rust newbie :) Thanks.