Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adraffy committed May 7, 2024
1 parent 725bbc3 commit bfdb259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'; }
Expand Down
1 change: 1 addition & 0 deletions src/ezccip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bfdb259

Please sign in to comment.