You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please correct me if I'm wrong, but since ccip-read support has already landed on ethers-js, it should be possible to drop the "@chainlink/ethers-ccip-read-provider" package from 'examples/trusted-gateway-token/client/src/index.ts', and use purely ethers-js.
Furthermore since CCIP-read is a protocol, I'd expect the examples here to work interchangeably with ethers. Even the @chainlink/ethers-ccip-read-provider project description itself says it is deprecated in favour of ethers and users should use ethers instead.
I've tried replacing @chainlink/ethers-ccip-read-provider with ethers in the example client, but didn't have success thus far.
Are there incompatibilities between this demo and the way CCIP-read is implemented in ethers-js?
The text was updated successfully, but these errors were encountered:
In my first attempt, it seems ethers.js halts on the first exception thrown from the smartcontract (instead of proceeding with the lookups based on the provided URLs from the exception).
I've created ethers-io/ethers.js#3240 to understand how to properly enable ccip-read, but if anyone here knows how to do this please let me know. Thanks.
tfalencar
changed the title
Replacing ccipread.CCIPReadProvider with latest ethers yields error
Replace ccipread.CCIPReadProvider with latest ethers
Aug 9, 2022
Then, for the "balanceOf" calls, I had to add the { ccipReadEnabled: true} parameter (otherwise ethers would not make the subsequent requests.
However, the transfer method call fails if I add { ccipReadEnabled: true } to it. So by removing, I noticed it works (I'm guessing write operations doesn't need to specify ccipReadEnabled?).
Since there is no documentation about this in ethers yet, I'm not sure if this is a bug or not. In any case, I've uploaded the changes to the following: #28
Please correct me if I'm wrong, but since ccip-read support has already landed on ethers-js, it should be possible to drop the "@chainlink/ethers-ccip-read-provider" package from 'examples/trusted-gateway-token/client/src/index.ts', and use purely ethers-js.
Furthermore since CCIP-read is a protocol, I'd expect the examples here to work interchangeably with ethers. Even the @chainlink/ethers-ccip-read-provider project description itself says it is deprecated in favour of ethers and users should use ethers instead.
I've tried replacing @chainlink/ethers-ccip-read-provider with ethers in the example client, but didn't have success thus far.
Are there incompatibilities between this demo and the way CCIP-read is implemented in ethers-js?
The text was updated successfully, but these errors were encountered: