Skip to content

Commit 0a2e928

Browse files
authored
Native fungible demo accepts 32-byte long address (#4600)
## Motivation Fungible demo frontend accepted only 20-byte accounts. ## Proposal Modify the regex to also accept 32-bytes (64 chars). ## Test Plan Manual. ## Release Plan Already backported to testnet #4599 ## Links Solves #4562 - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 36275a3 commit 0a2e928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/native-fungible/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai
180180

181181
let errors = [];
182182
try {
183-
const match = recipient.match(/^(0x[0-9a-f]{40})@([0-9a-f]{64})$/);
183+
const match = recipient.match(/^(0x[0-9a-f]{40}|0x[0-9a-f]{64})@([0-9a-f]{64})$/i);
184184
if (!match) throw new Error('Invalid recipient address: expected `owner@chain_id`');
185185

186186
const query = gql(`mutation(

0 commit comments

Comments
 (0)