返回错误信息
estimate_gas
"20128"
execute_err
"Call: TypeError: Cannot read property 'apply' of undefined"
result:"TypeError: Cannot read property 'apply' of undefined"
我的代码
var nebrella = new Nebrella()
var neb = nebrella.neb
var HttpRequest = Nebrella.HttpRequest
neb.setRequest(new HttpRequest(NasConfig.testnet.host))
neb.api.call({
chainID: NasConfig.testnet.chainID,
from: NasConfig.testnet.contractAddress,
to: NasConfig.testnet.contractAddress,
value: 0,
nonce:0,
gasPrice: 1000000,
gasLimit: 2000000,
contract: {
function: "getCountry",
args: ""
}
}).then((res)=> {
console.log("result:", res)
//code
}).catch((err)=>{
console.log(err)
});