Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
common: Make WalletConnect txs legacy
Browse files Browse the repository at this point in the history
Signed-off-by: xphoniex <[email protected]>
  • Loading branch information
xphoniex committed May 2, 2022
1 parent a4f9076 commit 4561ce1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/src/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl SignerOptions {
}
Long("walletconnect") => {
options.walletconnect = true;
std::env::set_var("RAD_SIGNER_LEGACY", "true");
}
_ => unparsed.push(args::format(arg)),
}
Expand Down Expand Up @@ -262,6 +263,11 @@ where
D: Detokenize,
M: Middleware + 'static,
{
let call = if std::env::var_os("RAD_SIGNER_LEGACY").is_some() {
call.legacy()
} else {
call
};
let receipt = loop {
let spinner = term::spinner("Waiting for transaction to be signed...");
let tx = match call.send().await {
Expand Down

0 comments on commit 4561ce1

Please sign in to comment.