Skip to content

Commit

Permalink
Add detail to compatibility comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke authored May 18, 2020
1 parent b05af69 commit 15561d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-eth-abi/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ ABICoder.prototype.encodeParameters = function (types, params) {
return param.toString(10);
}

// Handle some formatting of params as to not break previous compatability
// Handle some formatting of params for backwards compatability with Ethers V4
const formatParam = (type, param) => {
if (type.match(paramTypeBytesArray) || type.match(paramTypeNumberArray)) {
return param.map(p => formatParam(type.replace('[]', ''), p))
Expand Down

0 comments on commit 15561d9

Please sign in to comment.