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

support cross-compilation of stylus programs #353

Merged
merged 8 commits into from
Aug 29, 2024
Merged

support cross-compilation of stylus programs #353

merged 8 commits into from
Aug 29, 2024

Conversation

magicxyyz
Copy link
Contributor

Resolves NIT-2632

@magicxyyz magicxyyz marked this pull request as ready for review August 26, 2024 17:12
tsahee
tsahee previously approved these changes Aug 27, 2024
Copy link
Contributor

@tsahee tsahee left a comment

Choose a reason for hiding this comment

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

approved with comments

arbitrum/apibackend.go Outdated Show resolved Hide resolved
@@ -194,4 +199,5 @@ type Database interface {
Snapshotter
io.Closer
WasmDataBaseRetriever
WasmTargetsRetriever
Copy link
Contributor

Choose a reason for hiding this comment

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

can we merge WasmTargetsRetriever and WasmDataBaseRetriever?
In a future PR I hope to remove all of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved the WasmTargets() method to WasmDataBaseRetriever.

Would it make sense to instead of having wasmdb and wasmTag in cachingDB to have:

func (db *cachingDB) WasmStore() ethdb.KeyValueStore {
    wasmdb, _ := wasmDatabsaseRetriever.WasmDatabase()
    return wasmdb
}

func (db *cachingDB) WasmCacheTag() uint32 {
    _, wasmTag := wasmDatabsaseRetriever.WasmDatabase()
    return wasmTag
}

?

core/state/statedb_arbitrum.go Outdated Show resolved Hide resolved
@magicxyyz magicxyyz requested a review from tsahee August 28, 2024 12:39
Copy link
Contributor

@tsahee tsahee left a comment

Choose a reason for hiding this comment

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

LGTM

@tsahee tsahee merged commit fb79423 into master Aug 29, 2024
9 checks passed
@tsahee tsahee deleted the cross-compile branch August 29, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants