-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
Allow to compile client to webassembly #23046
Conversation
accounts/abi/bind/auth.go does not compile because it depends on accounts/external, which depends on signer/core, which does not compile under WebAssembly. We will fix it by removing the dependency on signer/core. |
The dependency is now removed. |
// +build !js | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should no longer be needed, after the change in #23275
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this change wasn't enough, here is what I get:
imports github.com/ethereum/go-ethereum/accounts/abi/bind
imports github.com/ethereum/go-ethereum/accounts/external
imports github.com/ethereum/go-ethereum/signer/core/apitypes
imports github.com/ethereum/go-ethereum/internal/ethapi
imports github.com/ethereum/go-ethereum/consensus
imports github.com/ethereum/go-ethereum/core/state
imports github.com/VictoriaMetrics/fastcache
imports golang.org/x/sys/unix: build constraints exclude all Go files in /home/maxmati/go/pkg/mod/golang.org/x/sys@v0.0.0-20210510120138-977fb7262007/unix
I don't know go-ethereum at all so it's hard to fix for me.
We try to use ethereum contract in webassembly but it was failing due to some symbols missing. To fix this I disabled compilation of some modules for js tag.
d1a02bb
to
03e02c2
Compare
We have merged another update to remove more dependencies of accounts/abi/bind, it should compile now. |
Since I can't edit this PR, I have re-sent the metrics change in #23449. |
We try to use ethereum contract in webassembly but it was failing due to
some symbols missing. To fix this I disabled compilation of some modules
for js tag.