Skip to content

Commit

Permalink
Fix converting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxima-net committed Aug 19, 2022
1 parent 2557470 commit 65c6a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evm/helpers/web3Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Web3Helper {
}

convertFromWei(value: BigNumber | string, unit: Unit): BigNumber {
const stringValue = typeof value === 'string' ? value : value.toString();
const stringValue = typeof value === 'string' ? value : value.toString(10);
const result = this.toolkit.utils.fromWei(stringValue, unit);

return new BigNumber(result);
Expand Down

0 comments on commit 65c6a27

Please sign in to comment.