mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 07:35:52 +00:00
Fix trace validation
This commit is contained in:
@@ -173,7 +173,7 @@ function Remote(opts, trace) {
|
||||
throw new TypeError('Remote "fee_cushion" configuration is not a Number');
|
||||
}
|
||||
|
||||
if (!/^(undefined|number)$/.test(typeof opts.trace)) {
|
||||
if (!/^(undefined|boolean)$/.test(typeof opts.trace)) {
|
||||
throw new TypeError('Remote "trace" configuration is not a Boolean');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user