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

[NOT FOR MERGE] core-v24.7.1 #2231

Closed
wants to merge 5 commits into from
Closed

Conversation

perekopskiy
Copy link
Contributor

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.

perekopskiy and others added 5 commits June 13, 2024 13:28
"%err" is just printing the leaf message which is not useful. "{err:#}"
prints the whole stack trace, as desired.

(cherry picked from commit f529a45)
## What ❔

Add metrics for better observability

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.

(cherry picked from commit 1e48cd9)
## What ❔

+ Change `get_transaction_receipts` DAL method to fetch the contract
address from the `events` table.
+ Add integration test that checks we return the correct contract
address in the receipt of the transaction that deployed inner-outer
contract(e.g. contract that initializes another contract in its
constructor).

## Why ❔
The current approach(going to the `storage_logs` table to get the
contract address) is error-prone. The problem here is that we
deduplicate storage logs, which renders operation_number invalid. So,
the ordering is not correct, and we might return the incorrect deployed
address. This is important when one tx deploys a contract that
initializes another contract in the constructor(which means we deploy
several contracts here) - the user expects the "outer" contract address
but gets the inner.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.

(cherry picked from commit 64cb269)
@perekopskiy perekopskiy deleted the core-v24.7.1 branch June 13, 2024 13:05
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.

3 participants