-
Notifications
You must be signed in to change notification settings - Fork 4
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: introduce function to prep tx to reclaim as sender #117
Conversation
Live tests failed. Please check the logs to see which checks failed. |
contractVersion = null, | ||
}: { | ||
depositIndex: number | ||
provider?: ethers.providers.JsonRpcProvider // TODO: update to not use ethers.providers.JsonRpcProvider but just a url |
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.
Nice comment y!
src/index.ts
Outdated
} | ||
|
||
if (contractVersion == null) { | ||
contractVersion = getLatestContractVersion({ chainId, type: 'normal' }) |
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.
Unrelated, but I think we should change type naming to vault, batcher, router
Instead of normal / batch
src/index.ts
Outdated
contractVersion = getLatestContractVersion({ chainId, type: 'normal' }) | ||
} | ||
|
||
const contract = await getContract(chainId, provider, contractVersion) |
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.
Unrelated, maybe we should add latest param to get Contract so we can skip this 2part thing
src/index.ts
Outdated
|
||
const tx = await contract.populateTransaction.withdrawDepositSender(depositIndex) | ||
|
||
const peanutUnsignedTransaction: interfaces.IPeanutUnsignedTransaction = { |
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 have ethersV5ToPeanutTx
and peanutToEthersV5Tx
for this kinda stuff
Live tests failed. Please check the logs to see which checks failed. |
2 similar comments
Live tests failed. Please check the logs to see which checks failed. |
Live tests failed. Please check the logs to see which checks failed. |
No description provided.