Fix WASM build error when importing common package#1983
Conversation
- `IsTty` function is not defined when building WASM with the below options ``` GOOS=js GOARCH=wasm go build ```
- `signature_cgo.go` is excepted for js build. - `signature_nocgo.go` which is derived from `go-ethereum` is ported.
aidan-kwon
left a comment
There was a problem hiding this comment.
Long time no see @hackartists :) Thank you for your contribution.
Your request doesn't seem to be harmful to existing code. As you probably know, however, Klaytn has not been tested much in the WASM environment. If you need something more for your project, please share and ask us what you need.
Yes, I know. Currently, I am developing and managing Incheon Universe homepage(incheon.world) which is developed by Flutter backed by Golang WASM. In fact,
Consequently, @aidan-kwon I aims to provide users with simple browser wallet instead of blockchain wallet. So I need belows.
|
|
@hackartists I think we need more discussion. I will contact you through another channel soon. |
|
Hi @hackartists, Instead of modifying |
JS building failure
Some packages fails when building
jsbecause no alternatives forjswith the below command.commonpackageIsTtyfunction is not defined when building WASM with the below optionsjstag to the function usingappenginetag.cryptopackagesignature_cgo.gois excluded injsbuild.signature_nocgo.gois ported fromgo-ethereumrepo.