- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
index.js:1 Failed to fetch multicall chunk [{…}] 1 Error: sending a transaction requires a signer (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=contracts/5.0.2)
最佳答案
您必须提供签名者才能执行solidity 方法。
您可以从您的 web3 提供商处获得签名者。
您可以像这样将签名者绑定(bind)到契约(Contract)
import Contract from './artifacts/contracts/Contract.sol/Contract.json'
const contractDeployedAddress = "0xblah";
const provider = new ethers.providers.Web3Provider(window.ethereum)
const signer = provider.getSigner();
const contract = new ethers.Contract(contractDeployedAddress, Contract.abi, signer)
await contract.someMethodThatRequiresSigning();
关于javascript - 错误 : sending a transaction requires a signer while calling aggregate function of Multicall Contract Ethereum,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65404281/
我有一个 javascript/jquery 函数: function deleteRecordByClick(){ $('.deleteRecord').click(function(){
我已经实现了两种调用 magento 方法的方法,首先是 http://sudzc.com/类(class)和第二名 http://www.wsdl2code.com/Pages/Home.aspx类
index.js:1 Failed to fetch multicall chunk [{…}] 1 Error: sending a transaction requires a signer (o
我是一名优秀的程序员,十分优秀!