From 2eccd811c60d2dd3cd8eb8502b01dcf74a52e470 Mon Sep 17 00:00:00 2001 From: Greg Skriloff <35093316+gskril@users.noreply.github.com> Date: Tue, 3 Feb 2026 01:58:15 -0500 Subject: [PATCH 1/2] Add cointype selector to mock gateway --- functions/api/example/basic-gateway.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/functions/api/example/basic-gateway.ts b/functions/api/example/basic-gateway.ts index 3295dbb2c..2abcc95ce 100644 --- a/functions/api/example/basic-gateway.ts +++ b/functions/api/example/basic-gateway.ts @@ -10,6 +10,15 @@ router.add({ }, }) +router.add({ + type: 'function addr(bytes32 node, uin256 coinType) external view returns (bytes)', + handle: ([_node, _coinType]) => { + // Always return the same address (offchain.integration-tests.eth) + // https://github.com/ensdomains/resolution-tests + return ['0xeE9eeaAB0Bb7D9B969D701f6f8212609EDeA252E' as const] + }, +}) + export async function onRequestPost({ request }: { request: Request }) { const body = await request.json() const { body: ccipReadRes } = await router.call(body) From eafbbc73aaf89e26f74a72d2fb968207f2e1990a Mon Sep 17 00:00:00 2001 From: Greg Skriloff <35093316+gskril@users.noreply.github.com> Date: Tue, 3 Feb 2026 02:01:47 -0500 Subject: [PATCH 2/2] Fix typo in ABI --- functions/api/example/basic-gateway.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/example/basic-gateway.ts b/functions/api/example/basic-gateway.ts index 2abcc95ce..9be498ed8 100644 --- a/functions/api/example/basic-gateway.ts +++ b/functions/api/example/basic-gateway.ts @@ -11,7 +11,7 @@ router.add({ }) router.add({ - type: 'function addr(bytes32 node, uin256 coinType) external view returns (bytes)', + type: 'function addr(bytes32 node, uint256 coinType) external view returns (bytes)', handle: ([_node, _coinType]) => { // Always return the same address (offchain.integration-tests.eth) // https://github.com/ensdomains/resolution-tests