Contract code:
function getAddressDnaIds(address owner) external view returns(uint256[])
{
return addressDnaIds[owner];
}
Code causing the error:
var dna = await this.airdrop.methods.getAddressDnaIds(this.address)
.call({ from: this.address })
Someone know what is the cause of this error or how to fix it?
this.airdropisn't pointing to the right address on the right blockchain. (This type of error is common whencalling into a non-contract.) – user19510 Mar 20 '19 at 22:25