@polkadot/params
Advanced tools
Comparing version 0.13.4 to 0.13.5
@@ -9,3 +9,3 @@ 'use strict'; | ||
module.exports = function bn(decode, input, bitLength) { | ||
var length = bitLength === 32 ? 4 : 8; | ||
var length = bitLength / 8; | ||
@@ -12,0 +12,0 @@ return { |
@@ -12,5 +12,5 @@ 'use strict'; | ||
return { | ||
length: length, | ||
length: length + 4, | ||
value: input.subarray(4, length + 4) | ||
}; | ||
}; |
@@ -17,7 +17,7 @@ 'use strict'; | ||
var LENGTH = B_SIG + 64; | ||
var length = B_SIG + 64; | ||
module.exports = function misbehavior(decode, input) { | ||
return { | ||
length: LENGTH, | ||
length: length, | ||
value: { | ||
@@ -33,3 +33,3 @@ parentHash: input.subarray(O_PHASH, O_PNUM), | ||
header: input.subarray(B_HASH, B_SIG), | ||
signature: input.subarray(B_SIG, LENGTH) | ||
signature: input.subarray(B_SIG) | ||
}] | ||
@@ -36,0 +36,0 @@ } |
{ | ||
"name": "@polkadot/params", | ||
"version": "0.13.4", | ||
"version": "0.13.5", | ||
"description": "Type defintions for parameters as passed in calls", | ||
@@ -32,5 +32,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@polkadot/extrinsics": "^0.13.4", | ||
"@polkadot/extrinsics-substrate": "^0.13.4", | ||
"@polkadot/primitives": "^0.13.4", | ||
"@polkadot/extrinsics": "^0.13.5", | ||
"@polkadot/extrinsics-substrate": "^0.13.5", | ||
"@polkadot/primitives": "^0.13.5", | ||
"@polkadot/util": "^0.19.6", | ||
@@ -37,0 +37,0 @@ "babel-runtime": "^6.26.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26022