We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10725e9 commit d901b6eCopy full SHA for d901b6e
1 file changed
src/content/docs/How To/smart contract development.mdx
@@ -101,6 +101,14 @@ To compile your contract:
101
tinygo build -gc=custom -scheduler=none -panic=trap -no-debug -target=wasm-unknown -o artifacts/main.wasm contract/main.go
102
```
103
104
+<Aside type="tip">
105
+For the best chance of successful contract source code verification on block explorers, compile your contract using Docker:
106
+```sh
107
+docker pull tinygo/tinygo:0.39.0
108
+docker run --rm -v $(pwd):/home/tinygo tinygo/tinygo:0.39.0 tinygo build -gc=custom -scheduler=none -panic=trap -no-debug -target=wasm-unknown -o artifacts/main.wasm contract/main.go
109
+```
110
+</Aside>
111
+
112
To remove metadata from the output WASM binary to reduce file size:
113
114
<Tabs syncKey="wasmTools">
0 commit comments