@@ -183,7 +183,8 @@ export async function createMintConsume(): Promise<void> {
183183 console .log (" Creating account for Alice…" );
184184 const alice = await client .newWallet (
185185 AccountStorageMode .public (), // Public: account state is visible on-chain
186- true // Mutable: account code can be upgraded later
186+ true , // Mutable: account code can be upgraded later
187+ 0 // Auth Scheme: 0 for RPO Falcon 512, 1 for ECDSA 256 Keccak
187188 );
188189 console .log (" Alice ID:" , alice .id ().toString ());
189190}
@@ -206,7 +207,8 @@ const faucetAccount = await client.newFaucet(
206207 false , // Immutable: faucet rules cannot be changed
207208 " MID" , // Token symbol (like ETH, BTC, etc.)
208209 8 , // Decimals (8 means 1 MID = 100,000,000 base units)
209- BigInt (1_000_000 ) // Max supply: total tokens that can ever be minted
210+ BigInt (1_000_000 ), // Max supply: total tokens that can ever be minted
211+ 0 // Auth Scheme: 0 for RPO Falcon 512, 1 for ECDSA 256 Keccak
210212);
211213console .log (" Faucet account ID:" , faucetAccount .id ().toString ());
212214
@@ -256,7 +258,7 @@ export async function createMintConsume(): Promise<void> {
256258
257259 // 2. Create Alice's account
258260 console .log (" Creating account for Alice…" );
259- const alice = await client .newWallet (AccountStorageMode .public (), true );
261+ const alice = await client .newWallet (AccountStorageMode .public (), true , 0 );
260262 console .log (" Alice ID:" , alice .id ().toString ());
261263
262264 // 3. Deploy a fungible faucet
@@ -267,6 +269,7 @@ export async function createMintConsume(): Promise<void> {
267269 " MID" ,
268270 8 ,
269271 BigInt (1_000_000 ),
272+ 0 ,
270273 );
271274 console .log (" Faucet ID:" , faucet .id ().toString ());
272275
0 commit comments