Skip to content

Commit b80ec49

Browse files
committed
Clarify loadRemoteVersion example
1 parent d3d8d3f commit b80ec49

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)