diff --git a/README.md b/README.md index ef30629..69bfdab 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Turnkey [EIP-3668: CCIP-Read](https://eips.ethereum.org/EIPS/eip-3668) Handler f * `multicall(resolve(...))` * `multicall(resolve(multicall(...)), ...)` * use [`serve()`](#serve) to quickly launch a server +* use [CCIP Postman](https://adraffy.github.io/ezccip.js/test/postman.html) ⭐️ to debug ## Demo @@ -104,7 +105,7 @@ http.close(); ### callRecord() -Apply ENSIP-10 `calldata` to a `Record`-object and generate the corresponding ABI-encoded response. +Apply ENSIP-10 `calldata` to a `Record`-object and generate the corresponding ABI-encoded response. This is a pure free-function. ```js let record = { text(key) { if (key == 'name') return 'raffy'; } diff --git a/src/ezccip.js b/src/ezccip.js index 9bcb135..6178e3d 100755 --- a/src/ezccip.js +++ b/src/ezccip.js @@ -171,6 +171,7 @@ export class EZCCIP { } } +// rename to processENSIP10()? export async function callRecord(record, calldata, multicall = true, history) { try { if (history) history.calldata = calldata;