-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix(builder): Replace viem getUrl calls to registry with axios #1351
base: main
Are you sure you want to change the base?
Conversation
|
What is the motivation for this PR? I am out of the loop and it seems confusing |
@saeta-eth |
@@ -480,7 +480,36 @@ export class OnChainRegistry extends CannonRegistry { | |||
], | |||
}); | |||
|
|||
return (url as string) || null; | |||
const response = await axios.post( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call could be moved to a helper like contractFunctionCall
so this method does not get super long.
@@ -504,6 +533,35 @@ export class OnChainRegistry extends CannonRegistry { | |||
], | |||
}); | |||
|
|||
const response = await axios.post( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it can use the helper mentioned before.
Co-authored-by: Matías <[email protected]>
Replaces
getUrl
andgetMetaUrl
to use axios to make rpc calls to the registry