Skip to content

Commit

Permalink
Remove style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
castrodd committed Jan 12, 2024
1 parent 93d1f3a commit f63851a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/converters/toRpcTypedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export function toRpcTypedData(data: unknown): RpcTypedData | null | undefined {
const bytes = new Uint8Array(data);
return { bytes: bytes };
} else if (typeof data === 'number') {
return Number.isInteger(data) ? { int: data } : { double: data };
if (Number.isInteger(data)) {
return { int: data };
} else {
return { double: data };
}
} else {
return { json: JSON.stringify(data) };
}
Expand Down

0 comments on commit f63851a

Please sign in to comment.