This commit is contained in:
debris 2015-10-06 00:52:02 +02:00
parent 50a42ab839
commit 0e17ec7595
5 changed files with 17 additions and 13 deletions

4
dist/web3-light.js vendored
View File

@ -704,7 +704,9 @@ SolidityCoder.prototype.encodeParams = function (types, params) {
});
var dynamicOffset = solidityTypes.reduce(function (acc, solidityType, index) {
return acc + solidityType.staticPartLength(types[index]);
var staticPartLength = solidityType.staticPartLength(types[index]);
var roundedStaticPartLength = Math.floor((staticPartLength + 31) / 32) * 32;
return acc + roundedStaticPartLength;
}, 0);
var result = this.encodeMultiWithOffset(types, solidityTypes, encodeds, dynamicOffset);

File diff suppressed because one or more lines are too long

4
dist/web3.js vendored
View File

@ -704,7 +704,9 @@ SolidityCoder.prototype.encodeParams = function (types, params) {
});
var dynamicOffset = solidityTypes.reduce(function (acc, solidityType, index) {
return acc + solidityType.staticPartLength(types[index]);
var staticPartLength = solidityType.staticPartLength(types[index]);
var roundedStaticPartLength = Math.floor((staticPartLength + 31) / 32) * 32;
return acc + roundedStaticPartLength;
}, 0);
var result = this.encodeMultiWithOffset(types, solidityTypes, encodeds, dynamicOffset);

4
dist/web3.js.map vendored

File diff suppressed because one or more lines are too long

10
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long