Error: no matching fragment. Contract runner does not support sending transactions #4025
Unanswered
wdcs-kushaltanna
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Found solution? I'm stuck with same issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I dont know why am i getting these errors.
I am trying to use the ethers library to communicate with the smart contract deployed on the polygon. And when i am trying to change the state of smart contract, it is throwing me this error. Which i am not able to solve. I coulnt find anything documented about it either. And not even any stackoverflow thread. Hope someone can help me here.
one more question i had, when i use
provider
in the contract instantiation [Contract1], it will only allow me to execute the read methods from the smart contract right.? and when i usesigner
in the contract instantiation [Contract2], it will allow me write to the smart contract. But when i try to execute the read method of the smart contract using Contract2 it wont allow me to execute. Why.? and is there any other way which simplify it and i can use single instance to do both.? just like i was able to in 5.7 .?Attaching the code snippet below.
another code with connect() method
Direct calling the function, but it does not work either.
Beta Was this translation helpful? Give feedback.
All reactions