provider: EthersProviderWrapper is getting a wrong connection url #3320
Unanswered
CristianS9
asked this question in
Troubleshooting
Replies: 1 comment 8 replies
-
Can you print
This is a known issue: #1138. I understand that is quite annoying and misleading. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to run a simple script by calling a function from an already deployed contract. For some strange reason the deploy and the reading from the contract works fine, but the writing functions don't.
By checking at alchemy the
eth_sendRawTransaction
and decoding the call, it looks like the RPC gets an error instead a of a normal transaction:The parameter that is being sent is (decoded):
"error": "Error validating transaction: Invalid sender: invalid chain id for signer."
This is my hardhat.config.js
This is the script that I am trying to run with :
yarn hardhat run scripts/gateKeeperOne/setGateInfo.js --network goerli
:network.name & network.chaind logs:
This is the user log:
There are 2 things that I don't get:
network.name = homestead
&network.chainId=1
??? if im passing the--network goerli
parameter_network:{}
seems to be ok but theconnection: { url: 'http://localhost:8545' }
is set to this value,why?. and no, the ENV variable is not the problem, because it is calling the Alchemy RPC but sending that error mesage.Beta Was this translation helpful? Give feedback.
All reactions