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

rusk-wallet: Fix creation of deploy-transaction #2563

Merged
merged 1 commit into from
Oct 11, 2024
Merged

rusk-wallet: Fix creation of deploy-transaction #2563

merged 1 commit into from
Oct 11, 2024

Conversation

moCello
Copy link
Member

@moCello moCello commented Oct 2, 2024

This pick up the changes to the deploy-transaction creation from #2540 after it has been reverted and separated from the changes made to the syncing (#2558)

@moCello moCello force-pushed the fix_deploy branch 2 times, most recently from 1d48832 to b3d053a Compare October 2, 2024 13:37
rusk-wallet/src/bin/command.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/interactive.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/interactive.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/command.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/command.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/command.rs Outdated Show resolved Hide resolved
@miloszm
Copy link
Contributor

miloszm commented Oct 3, 2024

I do not see the actual deployment implemented in this PR, it only contains a way to generate contract id. Is there another PR which contains the deployment proper?

@Daksh14 Daksh14 requested a review from miloszm October 3, 2024 16:22
miloszm
miloszm previously approved these changes Oct 4, 2024
Copy link
Contributor

@miloszm miloszm left a comment

Choose a reason for hiding this comment

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

Nice, I was able to deploy a contract via Phoenix, 1 remark:

  • why isn't the wallet checking the status of sent transaction? - it could tell the user that transaction was successful or if not, what was the error
  • why does note fetching take so long? I'd compare with how it is done in deployment tool as it seems to be much faster there
  • status feedback during deployment is flashing messages too quickly, it is not readable, and it is showing msg about streaming when it is actually doing proving, it'd be better to show more static messages about what the wallet is actually doing

@moCello
Copy link
Member Author

moCello commented Oct 4, 2024

* why isn't the wallet checking the status of sent transaction? - it could tell the user that transaction was successful or if not , was is the error

@HDauven also pointed to me to this. He was going to add an issue

rusk-wallet/src/wallet/gas.rs Outdated Show resolved Hide resolved
rusk-wallet/src/wallet/gas.rs Outdated Show resolved Hide resolved
@HDauven
Copy link
Member

HDauven commented Oct 4, 2024

* why isn't the wallet checking the status of sent transaction? - it could tell the user that transaction was successful or if not , was is the error

@HDauven also pointed to me to this. He was going to add an issue

Sorry @miloszm @moCello, had to participate in a long meeting before I was able to finalize the issue. Here it is: #2600

Copy link
Member Author

@moCello moCello left a comment

Choose a reason for hiding this comment

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

I am still not happy with the const names for the default gas values.
The const for gas-price now named DEFAULT_PRICE_TRANSACTION suggests that this value should be used everywhere where we also use DEFAULT_LIMIT_TRANSACTION and wise versa. But the value for DEFAULT_LIMIT_TRANSACTION is only used in transfer-transactions whereas the DEFAULT_PRICE_TRANSACTION is used for all transactions.
The context in which these two constants are used is different and their name needs to reflect that.

@Daksh14 Daksh14 force-pushed the fix_deploy branch 4 times, most recently from cce88bc to c883734 Compare October 9, 2024 17:54
rusk-wallet/src/bin/command.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/command.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/interactive.rs Outdated Show resolved Hide resolved
rusk-wallet/src/bin/interactive.rs Outdated Show resolved Hide resolved
rusk-wallet/src/wallet.rs Outdated Show resolved Hide resolved
- Change the default gas limits
- Let the wallet use the deftault values for deployment
- Rename gas constants
- Fix merge conflicts
- Rename nonce variable to seperate from deploy_nonce for moonlight
@moCello moCello requested a review from Daksh14 October 10, 2024 16:34
@Daksh14 Daksh14 marked this pull request as draft October 10, 2024 17:33
@Daksh14 Daksh14 marked this pull request as ready for review October 11, 2024 03:05
Copy link
Contributor

@Daksh14 Daksh14 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

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

LGTM

@moCello moCello merged commit 88872e1 into master Oct 11, 2024
21 of 22 checks passed
@moCello moCello deleted the fix_deploy branch October 11, 2024 11:11
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