Skip to content

Commit

Permalink
Update helper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
daoauth committed Jan 17, 2025
1 parent 7019b74 commit b1578e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/webview/activitybar/src/utilities/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ export const makeParams = (
case 'u8':
case 'u16':
case 'u32':
return parseInt(value);
case 'u64':
case 'u128':
case 'u256':
return parseInt(value);
return BigInt(value);
case 'bool':
return value.toLowerCase() === 'true';
case 'address':
Expand All @@ -70,10 +71,12 @@ export const makeParams = (
case 'u8':
case 'u16':
case 'u32':
temp.push(parseInt(item, 16));
break;
case 'u64':
case 'u128':
case 'u256':
temp.push(parseInt(item, 16));
temp.push(BigInt(item));
break;
default:
temp.push(makeParams(tempType, item));
Expand Down

0 comments on commit b1578e8

Please sign in to comment.