-
Notifications
You must be signed in to change notification settings - Fork 0
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: call deposit method #21
Conversation
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.
3.6
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.
I'm approving if this is blocking something, but those things should be addressed in separate PRs
const depositFee = await depositAdapterContract.methods._depositFee().call(); | ||
const depositFeeBigint = wallet.web3.utils.toBigInt(depositFee); | ||
|
||
const BRIDGE_FEE = '0.001'; |
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.
can be separate PR with less of a priority but this should also be fetched from contract.
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.
will open issue
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
const provider = wallet.web3.currentProvider as any; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access | ||
provider.on('chainChanged', (chainId: number) => { |
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.
@BeroBurny Could you check whats happening here. I can see web3 has chainChanged event types in Web3BaseProvider. Could you figure out why this callback is different from typed one
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.
Closes #12