diff --git a/.changeset/perfect-kings-look.md b/.changeset/perfect-kings-look.md new file mode 100644 index 0000000000..b2e11c6e1a --- /dev/null +++ b/.changeset/perfect-kings-look.md @@ -0,0 +1,5 @@ +--- +'@api3/airnode-node': patch +--- + +Fix chainId used in erc721CrossChainAuthorizations diff --git a/packages/airnode-node/src/evm/handlers/initialize-provider.ts b/packages/airnode-node/src/evm/handlers/initialize-provider.ts index 593afca5d9..17ccf3c5ae 100644 --- a/packages/airnode-node/src/evm/handlers/initialize-provider.ts +++ b/packages/airnode-node/src/evm/handlers/initialize-provider.ts @@ -79,7 +79,7 @@ async function fetchCrossChainAuthorizations( type: 'erc721', airnodeAddress: currentState.settings.airnodeAddress, authorizations: currentState.settings.authorizations, - chainId: authorizer.chainId, + chainId: currentState.settings.chainId, erc721s: authorizer.erc721s, provider: buildEVMProvider(authorizer.chainProvider.url, authorizer.chainId), RequesterAuthorizerWithErc721Address: authorizer.contracts.RequesterAuthorizerWithErc721,