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: added TransactionInfo solidity example contract (#527) #528

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

quiet-node
Copy link
Member

@quiet-node quiet-node commented Oct 25, 2023

Description:

  • added TransactionInfo solidity smart contract to cover below opcodes

    • gas()
    • address()
    • balance(a)
    • selfbalance()
    • caller()
    • callvalue()
    • calldataload(p)
    • calldatasize()
    • calldatacopy(t, f, s)
    • chainid()
    • getOrigin()
    • getGasPrice()
    • getCoinbase
    • getTimestamp()
    • getCurrentBlockNumber()
    • getGasLimit
  • added unit tests to cover TransactionInfo contract

Related issue(s):

Fixes #527

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@github-actions
Copy link

github-actions bot commented Oct 25, 2023

Test Results

  18 files  +  5    72 suites  +10   10m 3s ⏱️ + 2m 49s
198 tests +10  191 ✔️ +  9  6 💤 ±0  1 +1 
238 runs  +50  228 ✔️ +46  6 💤 ±0  4 +4 

For more details on these failures, see this check.

Results for commit f412f24. ± Comparison against base commit 1b45c1e.

♻️ This comment has been updated with latest results.

Signed-off-by: Logan Nguyen <[email protected]>

expect(result).to.eq(bytes32MessageCallData)
})
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit. Extra line.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the comment @ebadiere but that file actually already has an extra line but GitHub doesn't show the extra line. But if there is not an extra blank line at the end, it would show this symbol like this

image

Nana-EC
Nana-EC previously approved these changes Oct 26, 2023
Signed-off-by: Logan Nguyen <[email protected]>
@quiet-node quiet-node merged commit c1e5a7d into main Nov 1, 2023
20 of 21 checks passed
@quiet-node quiet-node deleted the 527-Transaction-Information branch November 1, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request EVM evm related P2 Tooling tooling
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Solidity Assembly Yul support] Transaction Information
3 participants