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

Fix Transaction Types #48

Merged
merged 26 commits into from
Sep 12, 2024
Merged

Fix Transaction Types #48

merged 26 commits into from
Sep 12, 2024

Conversation

avkos
Copy link
Collaborator

@avkos avkos commented Aug 29, 2024

No description provided.

Copy link
Collaborator

@danforbes danforbes left a comment

Choose a reason for hiding this comment

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

It seems like there are a lot of formatting-only changes in this PR. Why were those changes made? Would it be possible to revert those so that it's easier to understand the relevant changes to the code? Alternatively, could you provide some additional information in the PR description to help understand what relevant changes were made?

Copy link
Collaborator

@danforbes danforbes left a comment

Choose a reason for hiding this comment

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

Is this PR meant to address #37? The ZKsyncWallet.deposit method is still using an ad hoc type (as are the other wallet transactions)...

@luu-alex
Copy link
Collaborator

luu-alex commented Sep 9, 2024

other than what dan said, i think there were other changes made like

getAddress(): Promise<Address>;
	getAddress(): Address;

if u can list out the changes that would be great, but if the scope of this was to fix transaction types it looks like you've changed it :)

@avkos avkos requested a review from danforbes September 10, 2024 01:19
Copy link
Collaborator

@danforbes danforbes left a comment

Choose a reason for hiding this comment

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

I still see the use of lots of ad hoc transaction parameters in adapters.ts, for instance, deposit, estimateGasDeposit, getFullRequiredDepositFee, requestExecute, estimateGasRequestExecute, getRequestExecuteAllowanceParams, getRequestExecuteContractMethod, getRequestExecuteTx and withdraw. Would it be possible to create one or more transaction types that are exposed to developers and can be used as parameters for these methods?

src/adapters.ts Show resolved Hide resolved
@avkos avkos requested a review from danforbes September 11, 2024 21:19
@avkos avkos merged commit 9b4df27 into main Sep 12, 2024
2 checks passed
@avkos avkos deleted the Fix-types branch September 12, 2024 19:09
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.

4 participants