Skip to content

Commit

Permalink
legacyClaim: update claims.js
Browse files Browse the repository at this point in the history
  • Loading branch information
credence0x committed Aug 27, 2024
1 parent 8afc9ec commit 001c632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legacyClaim/starknet/scripts/metadata/claims.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const cairoFilePath = path.join(__dirname, "..","..", "..", "starknet", "src", c
// Function to generate mapping function string for Cairo
const generateMappingFunction = (mapping, name) => {
let functionString = `fn ${name}_mapping(num: felt252) -> (felt252, felt252) {\n match num {\n`;
functionString += ` 0 => panic!("zero ${name}"), \n`;
functionString += ` 0 => panic!("zero ${name}"),\n`;
for (const [key, value] of Object.entries(mapping)) {
functionString += ` ${Number(key) + 1} => (${value.address}, ${value.amount}),\n`;
}
Expand Down

0 comments on commit 001c632

Please sign in to comment.