Add GSNSigner
See original GitHub issueHi,
Is there a plan to have working integration with GSNProvider? I’ve made some tryouts and that didn’t work. An example:
const ethers = require('ethers');
const { GSNProvider } = require('@openzeppelin/gsn-provider');
const Web3 = require('web3');
const WEB3_PROVIDER = 'http://localhost:8545';
const web3 = new Web3(WEB3_PROVIDER);
const gsnProvider = new GSNProvider(WEB3_PROVIDER, { signKey: privateKey });
web3.setProvider(gsnProvider);
const provider = new ethers.providers.Web3Provider(web3.currentProvider);
const wallet = new ethers.Wallet(privateKey, provider);
const sampleContract = new ethers.Contract(ADDRESS, ABI, wallet);
await sampleContract.someWriteFunction();
// Error: "Error: sender doesn't have enough funds to send tx. The upfront cost is: XXXXXXX and the sender's account only has: 0"
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Can a GSN signer be changed after initialization? - SDK
I deployed a contract that inherits from GSNBouncerSignature using a hardware wallet and I used its address as the GSN signer.
Read more >Signers - ethers
A Signer in ethers is an abstraction of an Ethereum Account, which can be used to sign messages and transactions and send signed...
Read more >Issues configuring GSN to work on Binance - OpenGSN forum
const tx = await walletFactory.connect(gsnSigner) // . ... is deployed. the master branch is before adding GSN support to the project.
Read more >Rari Capital: RYPT Fund Proxy - Etherscan
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a ... @param newAddress The Ethereum address of the new...
Read more >How to set private key for Ethers Signer
add some explanation as well. – Achala Dissanayake. Mar 10 at 4:47. Add a comment |. This answer is useful. 0. This answer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looking into this issue at the moment. One of the reasons the GSNProvider does not work with ethers web3Provider currently because GSNProvider only passes eth_sendTransaction, eth_estimateGas, eth_getTransactionReceipt, to the relayer and ethers uses eth_sendRawTransaction.
Any update on this? Saw this PR, but it looks like it’s been given up on? https://github.com/ethers-io/ethers.js/pull/836