-
Notifications
You must be signed in to change notification settings - Fork 172
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: adapter support added #5221
Conversation
packages/agents/sdk/src/sdkShared.ts
Outdated
const isXERC20 = await xerc20Registry.functions.isXERC20(tokenAddress); | ||
if (isXERC20) { | ||
const lockbox = await xerc20Registry.functions.getLockbox(tokenAddress); | ||
if (lockbox !== "0x0000000000000000000000000000000000000000") { |
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.
we can use constants.AddressZero
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.
remved this
packages/agents/sdk/src/sdkBase.ts
Outdated
@@ -228,7 +228,17 @@ export class SdkBase extends SdkShared { | |||
}); | |||
} | |||
|
|||
const connextContractAddress = (await this.getConnext(origin, options)).address; | |||
const isValidAsset = await this.hasLockbox(origin, asset, options); |
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.
let's name this something more specfic, like isValidLockboxAsset
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.
removed this whole logic
Description
Added a feature to automate lockbox adapter process while dealing with xERC20 assets in
xcall
.Type of change
High-level change(s) description - from the user's perspective
Related Issue(s)
Fixes: #5154
Related pull request(s)