@@ -614,11 +614,11 @@ export function addHelpers(
614
614
) ;
615
615
await setupGasPrice ( unsignedTx ) ;
616
616
await setupNonce ( from , unsignedTx ) ;
617
-
617
+
618
618
// Temporary workaround for https://github.com/ethers-io/ethers.js/issues/2078
619
619
// TODO: Remove me when LedgerSigner adds proper support for 1559 txns
620
620
if ( hardwareWallet === 'ledger' ) {
621
- unsignedTx . type = 1
621
+ unsignedTx . type = 1 ;
622
622
}
623
623
624
624
if ( unknown ) {
@@ -1730,7 +1730,26 @@ Note that in this case, the contract deployment will not behave the same if depl
1730
1730
const registeredProtocol =
1731
1731
deploymentManager . addressesToProtocol [ from . toLowerCase ( ) ] ;
1732
1732
if ( registeredProtocol ) {
1733
- if ( registeredProtocol === 'ledger' ) {
1733
+ if ( registeredProtocol === 'external' ) {
1734
+ ethersSigner = provider . getSigner ( from ) ; //new WaitingTxSigner(from, provider);
1735
+ ethersSigner . sendTransaction = async (
1736
+ txRequest : TransactionRequest
1737
+ ) => {
1738
+ const response : { hash : string } = await enquirer . prompt ( {
1739
+ type : 'input' ,
1740
+ name : 'hash' ,
1741
+ message : `
1742
+ tx hash please
1743
+ to : ${ txRequest . to }
1744
+ data : ${ txRequest . data }
1745
+ value : ${ txRequest . value }
1746
+ ` ,
1747
+ } ) ;
1748
+
1749
+ return provider . getTransaction ( response . hash ) ;
1750
+ } ;
1751
+ hardwareWallet = 'external' ;
1752
+ } else if ( registeredProtocol === 'ledger' ) {
1734
1753
if ( ! LedgerSigner ) {
1735
1754
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1736
1755
let error : any | undefined ;
0 commit comments