Skip to content

Commit

Permalink
use this?.hexFormat at formatOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Feb 21, 2023
1 parent 893d266 commit 2ef010f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Method.prototype.formatOutput = function (result) {
return _this.outputFormatter && res ? _this.outputFormatter(res, this?.hexFormat) : res;
});
} else {
return this.outputFormatter && result ? this.outputFormatter(result, this.hexFormat) : result;
return this.outputFormatter && result ? this.outputFormatter(result, this?.hexFormat) : result;
}
};

Expand Down

0 comments on commit 2ef010f

Please sign in to comment.