Contract runner doesn't support calling #3913
Replies: 10 comments 9 replies
-
Keep in mind in v6, that |
Beta Was this translation helpful? Give feedback.
-
Where must I add an await? Please, write me a concrete place. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I wrote and everything worked for me. P.S.: what must I use instead ethers.BigNumber. What is written in documentation is not clear because of the following thing: |
Beta Was this translation helpful? Give feedback.
-
I need to convert to BigNumber of BigInt the following thing: |
Beta Was this translation helpful? Give feedback.
-
Thank you. And how to perform subtraction: |
Beta Was this translation helpful? Give feedback.
-
And then I need to do the following: |
Beta Was this translation helpful? Give feedback.
-
@ricmoo i have the same problem but i cant seem to fix it i would really appreciate your assistance " import { contractABI, contractAddress } from '../uitls/constants'; export const TransactionContext = React.createContext(); const { ethereum } = window; const getEthereumContract = () => { |
Beta Was this translation helpful? Give feedback.
-
this is the code import React, { useEffect, useState } from 'react'; import { contractABI, contractAddress } from '../uitls/constants'; export const TransactionContext = React.createContext(); const { ethereum } = window; const getEthereumContract = async() => { return transactionContract; export const TransactionProvider = ({ children }) => { const handleChange = (e, name) => { const getAllTransactions = async () => {
}; const checkIfWalletIsConnected = async () => {
}; const checkIfTransactionsExists = async () => {
} catch (error) { const connectWallet = async () => {
}; const sendTransaction = async () => {
}; useEffect(() => { return ( |
Beta Was this translation helpful? Give feedback.
-
Actually this issue is just because of the confusion between Plus you need to make sure that Anyways back to our issue, We got two types of functions in our solidity contract, one is read-only function that includes keywords such as |
Beta Was this translation helpful? Give feedback.
-
Ethers Version
6.1.0
Search Terms
ethers, contracts, set-interval-async
Describe the Problem
Hello. Here is the code:
this._auction = new ethers.Contract(
auctionAddress.DutchAuction,
auctionArtifact.abi,
this._provider.getSigner(0)
)
Then I try to do the following:
this.chekPriceInterval = setIntervalAsync(async() => {
this.setState({
currentPrice: ethers.formatEther(await this._auction.getPrice())
})
}, 1000)
And I get an Error:
Code Snippet
No response
Contract ABI
Errors
Unhandled Runtime Error Error: contract runner does not support calling (operation="call", code=UNSUPPORTED_OPERATION, version=6.1.0)
Environment
Hardhat
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions