diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 79f3388914..9d0d0b21ec 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -75,7 +75,7 @@ class CustomizedBridge extends Eip1193Bridge { // If from is present on eth_sendTransaction it errors, removing it makes the library set // from as the connected wallet which works fine delete params[0].from - const req = ethers.providers.JsonRpcProvider.hexlifyTransaction(params[0]) + const req = JsonRpcProvider.hexlifyTransaction(params[0]) // Hexlify sets the gasLimit property to be gas again and send transaction requires gasLimit req.gasLimit = req.gas delete req.gas