We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export function withRegisterDomain( repo: WriteRepository, recover: SignatureRecover, ): ccip.HandlerDescription { return { - type: 'register(bytes32 node, uint32 ttl)', + type: 'register(bytes32 node, uint32 ttl, bytes[] memory data)', func: async ({ node, ttl, data }, { signature, sender }) => { try { const signer = await recover.recoverMessageSigner( signature as TypedSignature, ) const existingDomain = await repo.getDomain({ node }) if (existingDomain) { if (existingDomain.owner !== signer) { return { error: { message: 'Forbidden action', status: 401 } } } return { error: { message: 'Domain already exists', status: 400 } } } await repo.register({ node, ttl, owner: signer }) + if (data.length > 0) { + ccipRequest({ data, sender, urls: ["http://127.0.0.1:3000/{sender}/{data}.json"] }) + } } catch (err) { return { error: { message: 'Unable to register new domain', status: 400 }, } } }, } }
The text was updated successfully, but these errors were encountered:
@pikonha I think this is done by https://github.com/orgs/blockful-io/projects/6/views/1?pane=issue&itemId=67655614
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: