Skip to content

Commit 2ec911c

Browse files
captDaylightaxic
authored andcommitted
removing useVersion from the README
1 parent b13c5b7 commit 2ec911c

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,7 @@ new BrowserWindow({
105105

106106
### Using a Legacy Version
107107

108-
In order to compile contracts using a specific version of Solidity, the `solc.useVersion` method is available. This returns a new `solc` object that uses a version of the compiler specified. **Note**: version strings must match the version substring of the files available in `/bin/soljson-*.js`. See below for an example.
109-
110-
```javascript
111-
var solc = require('solc')
112-
// by default the latest version is used
113-
// ie: solc.useVersion('latest')
114-
115-
// getting a legacy version
116-
var solcV011 = solc.useVersion('v0.1.1-2015-08-04-6ff4cd6')
117-
var output = solcV011.compile('contract t { function g() {} }', 1)
118-
```
119-
120-
If the version is not available locally, you can use `solc.loadRemoteVersion(version, callback)` to load it directly from GitHub.
108+
In order to compile contracts using a specific version of Solidity, the `solc.loadRemoteVersion(version, callback)` method is available. This returns a new `solc` object that uses a version of the compiler specified.
121109

122110
You can also load the "binary" manually and use `setupMethods` to create the familiar wrapper functions described above:
123111
`var solc = solc.setupMethods(require("/my/local/soljson.js"))`.

0 commit comments

Comments
 (0)