mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
Fix binary parsing of Vector256
This commit is contained in:
@@ -570,7 +570,8 @@ var STVector256 = exports.Vector256 = new SerializedType({
|
||||
parse: function (so) {
|
||||
var length = this.parse_varint(so);
|
||||
var output = [];
|
||||
for (var i=0; i<length; i++) {
|
||||
// length is number of bytes not number of Hash256
|
||||
for (var i=0; i<length / 32; i++) {
|
||||
output.push(STHash256.parse(so));
|
||||
}
|
||||
return output;
|
||||
|
||||
Reference in New Issue
Block a user