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-abi: Add transaction execution function #3186

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

moCello
Copy link
Member

@moCello moCello commented Dec 13, 2024

In order to move execute to rusk-abi some contract-deployment functionalities had to move as well:

  • the calculation of the bytecode charge is now a method of execution-core::transfer::Transaction.deploy_charge
  • the verification of the stored bytecode hash can now be done via the method execution-core::transfer::data::Bytecode.verify_hash
  • generating a contract id can now be done via rusk-abi::gen_contract_id

Resolves #3185

@moCello moCello force-pushed the mocello/3185_execute branch from 7c53d2c to 15623e0 Compare December 13, 2024 15:10
@moCello moCello marked this pull request as ready for review December 13, 2024 15:49
@moCello moCello force-pushed the mocello/3185_execute branch 2 times, most recently from 9b1f758 to eaf0a6a Compare December 16, 2024 12:53
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, very nice how we can get rid of the execute in test utils

It might be good to wait for a second opinion from @miloszm or @herr-seppia though

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.

rusk-abi: Add transaction execution function
2 participants