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

Never revert on ovmCREATE* #10

Merged
merged 3 commits into from
Feb 19, 2020

Conversation

willmeister
Copy link

Description

Makes ExecutionManager.sol always return an address from ovmCREATE and ovmCREATE2. It will be the 0 address if the create failed. This is to make it work how the EVM works currently.

Metadata

Fixes

Contributing Agreement

Copy link

@masonforest masonforest left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
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.

I'd approve if I didn't feel self concious for only taking approx. 7 mins to review this!

Looks good so far! I did ask one question here in the comments though that I'm curious about

mstore(returnData, 0)
return(returnData, 0x20)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know that this is what is returned during a failed STATIC_CALL? I personally don't so just want to make sure

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

I suppose we had tests for all failures result in 0 address and that static calls to create fail, but I added some tests to make sure that static calls actually return 0 address 👍

let returnData := mload(0x40)
mstore(returnData, 0)
return(returnData, 0x20)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@willmeister willmeister merged commit 0df35d9 into master Feb 19, 2020
@willmeister willmeister deleted the YAS-171/ContractCreationShouldNotRevert branch February 19, 2020 22:41
gakonst added a commit that referenced this pull request Apr 12, 2021
Previously, the Watcher was a separate package. It's currently consumed by:
* our integration tests
* our UI
* synthetix’s tests and UI

Given core-utils is a package meant to ship Optimism related utilities
to consumers, it makes more sense to bundle the Watcher in core-utils
than have it as a separate package.

Co-authored-by: Kelvin Fichter <[email protected]>
snario pushed a commit that referenced this pull request Apr 14, 2021
InoMurko referenced this pull request in omgnetwork/optimism May 25, 2021
Previously, the Watcher was a separate package. It's currently consumed by:
* our integration tests
* our UI
* synthetix’s tests and UI

Given core-utils is a package meant to ship Optimism related utilities
to consumers, it makes more sense to bundle the Watcher in core-utils
than have it as a separate package.

Co-authored-by: Kelvin Fichter <[email protected]>
InoMurko referenced this pull request in omgnetwork/optimism May 25, 2021
keroro520 pushed a commit to keroro520/optimism that referenced this pull request Jul 11, 2023
…um-optimism#11)

* ci: add the ci code used to package and release docker images (#7)

* ci: add the ci code used to package and release docker images

Co-authored-by: Welkin <[email protected]>

* fix: add latest tag for docker image (ethereum-optimism#9)

Co-authored-by: Welkin <[email protected]>

* try to use cache for docker build (ethereum-optimism#10)

Co-authored-by: Welkin <[email protected]>

---------

Co-authored-by: Welkin <[email protected]>
refcell pushed a commit that referenced this pull request Sep 6, 2023
Provide an option for users to invalidate nonces by increasing their nonces to (higher) new values
keroro520 pushed a commit to keroro520/optimism that referenced this pull request Oct 20, 2023
…um-optimism#11)

* ci: add the ci code used to package and release docker images (#7)

* ci: add the ci code used to package and release docker images

Co-authored-by: Welkin <[email protected]>

* fix: add latest tag for docker image (ethereum-optimism#9)

Co-authored-by: Welkin <[email protected]>

* try to use cache for docker build (ethereum-optimism#10)

Co-authored-by: Welkin <[email protected]>

---------

Co-authored-by: Welkin <[email protected]>
keroro520 pushed a commit to keroro520/optimism that referenced this pull request Oct 20, 2023
* op-batcher: Add metrics for pending L2 transaction data size (ethereum-optimism#5797)

* feat(op-node): Finalize Mainnet Rollup Config [release branch] (ethereum-optimism#5905)

* copy over develop chainsgo

* stage rollup config changes

* final rollup config values

* fix(op-batcher): solve race condition of BatchSubmitter publishTxToL1 and handleReceipt access state concurrently (#5)

* chore: update readme, add testnet assets (ethereum-optimism#9)

* chore: update readme, add testnet assets

* doc: clarify readme

* ci: add the ci code used to package and release docker images (ethereum-optimism#11)

* ci: add the ci code used to package and release docker images (#7)

* ci: add the ci code used to package and release docker images

Co-authored-by: Welkin <[email protected]>

* fix: add latest tag for docker image (ethereum-optimism#9)

Co-authored-by: Welkin <[email protected]>

* try to use cache for docker build (ethereum-optimism#10)

Co-authored-by: Welkin <[email protected]>

---------

Co-authored-by: Welkin <[email protected]>

* feat(ci): add ci workflow

* fix

* fix

* update

* update

* skip fail test temporarily

* add batcher/proposer

* add e2e

* skip fail e2e case temporary

* add op-node-lint

* fix lint

* add batcher/proposer lint

* test junit-report

* add junit report for all

* adjust parallel to 2 for avoiding fail

* add needs for job serial execution

* use testname format to simplify result

---------

Co-authored-by: Joshua Gutow <[email protected]>
Co-authored-by: refcell.eth <[email protected]>
Co-authored-by: bnoieh <[email protected]>
Co-authored-by: Owen <[email protected]>
Co-authored-by: Welkin <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jan 8, 2024
* blob encoding version 2

* - cosmetic cleanup
- use testify/require for testing
- improve big blob test case
- some performance improvements

* op-service: blob encoding nits (#10)

---------

Co-authored-by: Roberto Bayardo <[email protected]>
Co-authored-by: protolambda <[email protected]>
max-sanchez added a commit to hemilabs/optimism that referenced this pull request Apr 16, 2024
88047e707 Add tbcd, a small bitcoin daemon that participates on bitcoin p2p (ethereum-optimism#50)
1146a08b5 localnet reorg fix (ethereum-optimism#76)
87f18a191 build(deps): bump github.com/docker/docker (ethereum-optimism#64)
9073baeaf localnet (ethereum-optimism#37)
1588cbf04 Add common user-specific files to gitignore (ethereum-optimism#51)
210aabe7a Update popm.go, fix typo (ethereum-optimism#40)
a5e689493 make: automate copyright headers (ethereum-optimism#31)
1c3bfc9bc Use `maps.Clone(m)` to copy returned map in `APICommands()` (ethereum-optimism#33)
1be4df2a3 Use 'errors.Is' to compare errors (ethereum-optimism#32)
3f6bc5f8e e2e: sync ElectrumX environment variables with infra (ethereum-optimism#36)
c5b0fea01 electrumx: add connection reuse and pooling (ethereum-optimism#26)
cfc1293e9 Update README.md (ethereum-optimism#29)
8896259f0 retry mine keystone on failure (ethereum-optimism#18)
a10e3bb29 Use '%w' verb in fmt.Errorf to wrap errors (fixes ethereum-optimism#13) (ethereum-optimism#27)
6cd677611 deps: update google.golang.org/protobuf to v1.33.0 (ethereum-optimism#28)
ed7eb8e97 ci: fix concurrency cancel-in-progress for pull requests (ethereum-optimism#16)
ac3b7eacb docker: update golang image to v1.22.1 (ethereum-optimism#25)
d6b0ac8af returning response errors if they exist from bfg -> popm (ethereum-optimism#24)
d450b787a Network test start height + no panic (ethereum-optimism#22)
b390805c5 allowing BTC Block and L2 Keystone generation rates to be configurable in local network (ethereum-optimism#19)
bfd3b1dc0 make: add -local flag to goimports (ethereum-optimism#9)
e0e8964fc Move internal error into protocol package (ethereum-optimism#10)
7875a897c l2 keystone mining fixes (#3)

git-subtree-dir: heminetwork
git-subtree-split: 88047e707e2db8522e2ad77c5f849e55bc94cd10
ClaytonNorthey92 pushed a commit to hemilabs/optimism that referenced this pull request Apr 17, 2024
88047e707 Add tbcd, a small bitcoin daemon that participates on bitcoin p2p (ethereum-optimism#50)
1146a08b5 localnet reorg fix (ethereum-optimism#76)
87f18a191 build(deps): bump github.com/docker/docker (ethereum-optimism#64)
9073baeaf localnet (ethereum-optimism#37)
1588cbf04 Add common user-specific files to gitignore (ethereum-optimism#51)
210aabe7a Update popm.go, fix typo (ethereum-optimism#40)
a5e689493 make: automate copyright headers (ethereum-optimism#31)
1c3bfc9bc Use `maps.Clone(m)` to copy returned map in `APICommands()` (ethereum-optimism#33)
1be4df2a3 Use 'errors.Is' to compare errors (ethereum-optimism#32)
3f6bc5f8e e2e: sync ElectrumX environment variables with infra (ethereum-optimism#36)
c5b0fea01 electrumx: add connection reuse and pooling (ethereum-optimism#26)
cfc1293e9 Update README.md (ethereum-optimism#29)
8896259f0 retry mine keystone on failure (ethereum-optimism#18)
a10e3bb29 Use '%w' verb in fmt.Errorf to wrap errors (fixes ethereum-optimism#13) (ethereum-optimism#27)
6cd677611 deps: update google.golang.org/protobuf to v1.33.0 (ethereum-optimism#28)
ed7eb8e97 ci: fix concurrency cancel-in-progress for pull requests (ethereum-optimism#16)
ac3b7eacb docker: update golang image to v1.22.1 (ethereum-optimism#25)
d6b0ac8af returning response errors if they exist from bfg -> popm (ethereum-optimism#24)
d450b787a Network test start height + no panic (ethereum-optimism#22)
b390805c5 allowing BTC Block and L2 Keystone generation rates to be configurable in local network (ethereum-optimism#19)
bfd3b1dc0 make: add -local flag to goimports (ethereum-optimism#9)
e0e8964fc Move internal error into protocol package (ethereum-optimism#10)
7875a897c l2 keystone mining fixes (#3)

git-subtree-dir: heminetwork
git-subtree-split: 88047e707e2db8522e2ad77c5f849e55bc94cd10
bap2pecs referenced this pull request in babylonlabs-io/optimism Jul 31, 2024
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