Skip to content

Commit

Permalink
refac: format burner wallet address
Browse files Browse the repository at this point in the history
  • Loading branch information
EjembiEmmanuel committed Nov 22, 2024
1 parent 8e73333 commit dcfdd14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/app/burner/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ export default function Page() {
TransactionHash.transaction_hash,
);

const address: string = result.events?.at(0).from_address;
const formattedAddress =
"0x" + address.replace(/^0x/, "").padStart(64, "0");

return {
privateKey,
publicKey,
address: result.events?.at(0).from_address,
address: formattedAddress,
};
};

Expand Down

0 comments on commit dcfdd14

Please sign in to comment.