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

Feat/multi transaction with create tests #1615

Open
wants to merge 28 commits into
base: arith-dev
Choose a base branch
from

Conversation

amkCha
Copy link
Collaborator

@amkCha amkCha commented Dec 3, 2024

Closes #1590

  • have the world deal with everything in between (nonce updates, deployments, balance changes, ...)
    ==> change worldStateUpdater.commit() place in testing/src/main/java/net/consensys/linea/testing/GeneralStateReferenceTestTools.java

  • when defining the transactions only use Addresses to refer to accounts
    The nonce is a private parameter in a Transaction so once the Transaction is built, it cannot be changed. What we can feed ToyMultiTransaction with is a list of ToyTransactionBuilders i/o ToyTransactions and then go
    final List<Transaction> transactions = ToyMultiTransaction.builder().build(toyTransactionBuilders, userAccount);
    We can use the Address as well vs the Account. It requires a search in the HashMap addressToAccount though and I'm not sure I see it adds more value - TBD

@amkCha amkCha changed the title WIP Feat/multi transaction with create tests Feat/multi transaction with create tests Dec 3, 2024
@DavePearce
Copy link
Collaborator

Note that you are currently changing the commit for the constraints in this PR. Check that's what you intended. It could be that after updating to HEAD of arith-dev this will be resolved.

@amkCha amkCha force-pushed the feat/multi-transaction-with-create-tests branch from 28117c5 to cc3a374 Compare December 4, 2024 09:51
Base automatically changed from CREATE-tests to arith-dev December 7, 2024 06:15
@OlivierBBB
Copy link
Collaborator

This PR is apparently building off of some PR of mine I guess CREATE related ?

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.

Improve ToyAccount management in BytecodeRunner and ToyExecutionEnvironmentV2
3 participants