Skip to content

Commit

Permalink
Fix tests wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro committed Mar 16, 2022
1 parent a868eaa commit 0322a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0322a36

Please sign in to comment.