ensure HYP_KEY & --key are only used for PKs & let user pass --from-address from dry-runs (#3743)
### Description * This change ensures `HYP_KEY` and `--key` are only used for a developer's private key, and allows a user to pass in a `--from-address` for dry-runs (everything defaults to `HYP_KEY`, if sourced) ### Drive-by changes - Improved DX by removing incorrect log statement after insufficient balance check ``` Before: ✅ Signer is valid ? WARNING: 0x2d54EC30Be0D2583b0d781e10B31905c3c54616d has low balance on alfajores. At least 1.0 recommended but found 0.0 CELO Continue? yes ✅ Balances are sufficient After: ✅ Signer is valid ? WARNING: 0x2d54EC30Be0D2583b0d781e10B31905c3c54616d has low balance on alfajores. At least 1.0 recommended but found 0.0 CELO Continue? yes ``` ### Related issues * Fixes: https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/3736 ### Backward compatibility * Yes ### Testing * Manualpull/3785/head
parent
e37bd8abf9
commit
ff221f66a0
@ -0,0 +1,5 @@ |
||||
--- |
||||
'@hyperlane-xyz/cli': minor |
||||
--- |
||||
|
||||
Allows a developer to pass a private key or address to dry-run, and ensures HYP_KEY is only used for private keys. |
Loading…
Reference in new issue