I was executing a transaction using Alice account to make a sudo call in local Rococo Network
let alice = PairSigner::new(AccountKeyring::Alice.pair())
I am trying to change it to use my own account following this previous answers on StackExchange in: Is it possible to make a transaction with my own account?. To test it I got the Alice's keys from: What are the predefined accounts (ALICE, BOB, etc)?
let mnemonic_phrase = std::env::var("SEED").expect("Error: No mnemonic phrase");
let pair = sp_core::sr25519::Pair::from_string(&mnemonic_phrase, None).unwrap();
let alice = PairSigner::new(pair);
println!("pair: {:?}", pair.public());
It looks like is recovering Alice account fine, but when I try to execute the extrinsic I am getting an error: Error: Metadata(IncompatibleCodegen)
.