Skip to content

Commit 3e45ccb

Browse files
authored
chore(wallets): improve error message for signer instantiation failure (#10646)
chore(wallets): improve error message on signer instantiation failure
1 parent 496598b commit 3e45ccb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

crates/wallets/src/wallet.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ impl WalletOpts {
128128
eyre::bail!(
129129
"\
130130
Error accessing local wallet. Did you set a private key, mnemonic or keystore?
131-
Run `cast send --help` or `forge create --help` and use the corresponding CLI
131+
Run the command with --help flag for more information or use the corresponding CLI
132132
flag to set your key via:
133133
--private-key, --mnemonic-path, --aws, --gcp, --interactive, --trezor or --ledger.
134-
Alternatively, if you're using a local node with unlocked accounts,
135-
use the --unlocked flag and either set the `ETH_FROM` environment variable to the address
136-
of the unlocked account you want to use, or provide the --from flag with the address directly."
134+
Alternatively, when using the `cast send` or `cast mktx` commands with a local node
135+
or RPC that has unlocked accounts, the --unlocked or --ethsign flags can be used,
136+
respectively. The sender address can be specified by setting the `ETH_FROM` environment
137+
variable to the desired unlocked account address, or by providing the address directly
138+
using the --from flag."
137139
)
138140
};
139141

0 commit comments

Comments
 (0)