Skip to content

fixes: integrations#354

Merged
tynes merged 2 commits intomasterfrom
little-fixes
Nov 4, 2020
Merged

fixes: integrations#354
tynes merged 2 commits intomasterfrom
little-fixes

Conversation

@tynes
Copy link
Copy Markdown
Contributor

@tynes tynes commented Nov 4, 2020

Description

Update deps explicitly, return l1BlockNumber as a JS number instead of hex string

Metadata

Fixes

  • Fixes # [Link to Issue]

Contributing Agreement

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

LGTM!

"patch": "yarn run patch:ganache && yarn run patch:waffle",
"patch:ganache": "rm node_modules/ganache-core/typings/index.d.ts ||:",
"patch:waffle": "sed -ie 's!Ganache.GanacheOpts!any!g' node_modules/ethereum-waffle/dist/waffle.d.ts"
"patch:waffle": "sed -ie 's!Ganache.GanacheOpts!any!g' node_modules/ethereum-waffle/dist/waffle.d.ts ||:"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

b.stateRoot = block.stateRoot
for (let i = 0; i < b.transactions.length; i++) {
b.transactions[i].l1BlockNumber = block.transactions[i].l1BlockNumber
if (b.transactions[i].l1BlockNumber != null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens if this is null?

for (let i = 0; i < b.transactions.length; i++) {
b.transactions[i].l1BlockNumber = block.transactions[i].l1BlockNumber
if (b.transactions[i].l1BlockNumber != null) {
b.transactions[i].l1BlockNumber = parseInt(b.transactions[i].l1BlockNumber, 16)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be set to the l1BlockNumber even for sequencer transactions 😭

@tynes tynes merged commit 5c287ef into master Nov 4, 2020
@tynes tynes deleted the little-fixes branch November 4, 2020 21:53
snario pushed a commit that referenced this pull request Apr 14, 2021
protolambda added a commit to protolambda/optimism that referenced this pull request May 1, 2022
bap2pecs pushed a commit to babylonlabs-io/optimism that referenced this pull request Jul 31, 2024
…eum-optimism#354)

Closes ethereum-optimism#350 

This PR implements Merkle tree-based public randomness commitment. This
includes

- reverting the BIP-32 thing that is vulnerable
- introducing storage of Merkle proofs 
- revising semantics of submitting public randomness and finality
signatures

Future works that will be done in subsequent PRs:

- **DB schema:** instead of storing all proofs (which is O(n log n)), we
need to find an efficient way to store Merkle tree and keep it in memory
when it's used.
- **Optimisation of proof generation/veirfictaion:** we are considering
to use pollarding of Merkle tree, i.e., babylon side remembers the top X
levels in the Merkle tree and the Merkle proof will become hashses in
the levels lower than X. see
https://github.com/wealdtech/go-merkletree/blob/master/pollard.go
- **Better vector commitment schemes:** Merkle tree has other variants
that have better performance in scenarios with millions of leaves.
Ethereum community has stuff like Verkle tree and SSZ
Ayiga referenced this pull request in EspressoSystems/optimism-espresso-integration Mar 19, 2025
Don't use *big.Int as map key for beacon genesis.

big.Ints are not directly comparable in go since they contain a slice,
meaning they cannot be used as a map key, using a pointer to a big.Int
results in pointer equality being used for map lookups which is not what
we wanted.

Before this change all lookups for genesis start time would have
resulted in 0.
agusduha added a commit that referenced this pull request Mar 27, 2025
* fix: go linter

* fix: integration tests

* fix: intent test

* fix: upgrade test

* fix: lint
theochap pushed a commit that referenced this pull request Dec 10, 2025
Removes dynamic dispatch from the host-oriented types in
`kona-preimage`, in favor of a more flexible and readable alternative.

lint
theochap pushed a commit that referenced this pull request Jan 15, 2026
<!--
Thank you for your Pull Request. Please provide a description above and
review
the requirements below.

Bug fixes and new features should include tests.

Contributors guide:
https://github.com/alloy-rs/core/blob/main/CONTRIBUTING.md

The contributors guide includes instructions for running rustfmt and
building the
documentation.
-->

<!-- ** Please select "Allow edits from maintainers" in the PR Options
** -->

## Motivation

Closes alloy-rs/op-alloy#353

## Solution

Update target `wasm32-wasi` to `wasm32-wasip1` for ci

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
emhane pushed a commit that referenced this pull request Feb 3, 2026
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