Skip to content
New issue

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

feat: local ur unwrap #178

Merged
merged 3 commits into from
Apr 10, 2024
Merged

feat: local ur unwrap #178

merged 3 commits into from
Apr 10, 2024

Conversation

TateB
Copy link
Collaborator

@TateB TateB commented Mar 26, 2024

adds ccipRequest func which is exported from /utils

ccipRequest removes the universal-offchain-unwrapper requirement from the universal resolver contract, and replaces it with local logic that unwraps ccip-read requests.

can be used like so:

const chain = addEnsContracts(mainnet)
const publicClient = createPublicClient({
  chain,
  transport: http(),
  ccipRead: {
    request: ccipRequest(chain),
  },
})

Copy link

sonarcloud bot commented Mar 26, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
8.2% Duplication on New Code

See analysis details on SonarCloud

Base automatically changed from feat/viem-v2 to main April 3, 2024 06:12
Copy link
Member

@LeonmanRolls LeonmanRolls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very readable!

@TateB TateB merged commit 0de940c into main Apr 10, 2024
3 checks passed
@TateB TateB deleted the feat/local-ur-unwrap branch April 10, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants