0xinevitable / klaytn-multicall

🥁 Batch contract/on-chain queries to the same block. Multicall SDK for the Klaytn blockchain.
MIT License
6 stars 0 forks source link

caver latest version compatibility #2

Open lorancecall opened 1 year ago

lorancecall commented 1 year ago

https://github.com/inevitable-dao/klaytn-multicall/blob/6dec7e80b2e317e2fb2480825ea16474ed9084df/index.ts#L189

this.provider.klay.Contract cause error in latest version of caver. This probably need to be updated to

this.provider.contract instead

junhoyeo commented 1 year ago

@lorancecall I don't think it's deprecated but it supports both. Can you provide me more details about your environment?

https://github.com/klaytn/caver-js/blob/82ba48c52bd3fc2738ccba40f67a4bd0f206822a/packages/caver-contract/src/index.js#L60-L74