async function token() {
const kip7 = caver.kct.kip7.create(
"0x9c8125b34214e74922f82be05781c9fd2fc2b29c"
);
console.log(
await kip7.balanceOf("0x0b87345c013affe164aac27f85aa694c225a38fe")
);
}
이렇게 caver로 생성된 계정에 특정 컨트랙트의 balance를 가져오는 함수를 실행해보면
kip-7 기반 토큰은 정상작동 하고 ERC20 기반 토큰은 오류가 나고있습니다 ㅠ
- 오류메세지
Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.