Skip to content

Commit 8fce0fd

Browse files
authored
Merge pull request #309 from ethereum/readme-loadremote
Clarify loadRemoteVersion example
2 parents d3d8d3f + b80ec49 commit 8fce0fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ var solc = require('solc')
167167
solc.loadRemoteVersion('latest', function (err, solcSnapshot) {
168168
if (err) {
169169
// An error was encountered, display and quit
170+
} else {
171+
// NOTE: Use `solcSnapshot` here with the same interface `solc` has
170172
}
171-
var output = solcSnapshot.compile("contract t { function g() {} }", 1)
172173
})
173174
```
174175

0 commit comments

Comments
 (0)