Skip to content

Commit 3ddd31c

Browse files
authored
Native fungible demo accepts 32-byte long address (linera-io#4599)
## 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 This is a testnet branch. Updates fungible demo can be released from it. ## Links Solves linera-io#4562 - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 1a08293 commit 3ddd31c

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
@@ -171,7 +171,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai
171171

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

177177
const query = gql(`mutation(

0 commit comments

Comments
 (0)