【发布时间】:2022-07-19 04:27:21
【问题描述】:
使用 angular 和moralis 时,每当我尝试读取任何视图函数时都会出现此错误。下面是返回错误的函数
async contractBalance() {
let options = {
contractAddress: CONTRACT_ADDRESS,
functionName: "investorCount",
abi: ABI
}
await Moralis.enableWeb3();
return await Moralis.executeFunction(options);}
下面是我的 abi 和函数的链接
https://www.dropbox.com/s/cpbne99coinerm2/abi.ts?dl=0
Github 回购 https://github.com/orajiakuchibuchi/ETH-INVEST
这是我的仓库的链接,登录后,使用 rinkeby 网络进行元掩码,在身份验证后从指南页面导航到仪表板。仪表板页面中抛出错误,blockchainService line 206
【问题讨论】:
-
你能发布错误吗?
-
@NiccolòFant Github Repo github.com/orajiakuchibuchi/ETH-INVEST 这是我的 repo 的链接,登录后,使用 rinkeby 网络进行元掩码,在身份验证后从指南页面导航到仪表板。仪表盘页面中抛出错误,blockchainService line 206
标签: angular solidity web3js angular12 moralis