@waves/ride-js
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "@waves/ride-js", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Js compiler for Ride - Waves smart contract language.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -39,7 +39,14 @@ require('./interop'); | ||
const oldReconfigure = repl.reconfigure.bind(repl); | ||
repl.reconfigure = (opts) => { | ||
const settings = new scalaJsCompiler.NodeConnectionSettings(opts.nodeUrl, opts.chainId.charCodeAt(0), opts.address); | ||
return oldReconfigure(settings) | ||
const wrapReconfigure = (repl) => { | ||
let reconfigureFn = repl.reconfigure.bind(repl); | ||
return (opts) => { | ||
const settings = new scalaJsCompiler.NodeConnectionSettings(opts.nodeUrl, opts.chainId.charCodeAt(0), opts.address); | ||
const newRepl = reconfigureFn(settings); | ||
newRepl.reconfigure = wrapReconfigure(newRepl); | ||
return newRepl; | ||
} | ||
}; | ||
repl.reconfigure = wrapReconfigure(repl); | ||
return repl | ||
@@ -46,0 +53,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3140369
12739