Skip to content

Commit 6f99944

Browse files
committed
verified technical implementation
1 parent 71351b7 commit 6f99944

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

tokens/spl-token-minter/poseidon/migrations/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// single deploy script that's invoked from the CLI, injecting a provider
33
// configured from the workspace's Anchor.toml.
44

5-
const anchor = require("@coral-xyz/anchor");
5+
const anchor = require('@coral-xyz/anchor');
66

7-
module.exports = async function (provider) {
7+
module.exports = async (provider) => {
88
// Configure client to use the provider.
99
anchor.setProvider(provider);
1010

tokens/spl-token-minter/poseidon/programs/spl-token-minter/src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use anchor_lang::prelude::*;
22
use anchor_spl::{
3-
token::{transfer as transfer_spl, Transfer as TransferSPL, mint_to, Mint, MintTo, Token, TokenAccount},
43
associated_token::AssociatedToken,
4+
token::{
5+
mint_to, transfer as transfer_spl, Mint, MintTo, Token, TokenAccount,
6+
Transfer as TransferSPL,
7+
},
58
};
69
declare_id!("HFKNWrbYAfKsrWJu88RtUVHgVBNz1uJ6u2tNx1YCmAMZ");
710
#[program]
@@ -21,7 +24,7 @@ pub mod spl_token_minter {
2124
mint: ctx.accounts.mint_account.to_account_info(),
2225
to: ctx.accounts.to_account.to_account_info(),
2326
authority: ctx.accounts.signer.to_account_info(),
24-
}
27+
},
2528
);
2629
mint_to(cpi_ctx, amount)?;
2730
Ok(())
@@ -44,4 +47,4 @@ pub struct MintContext<'info> {
4447
pub mint_account: Account<'info, Mint>,
4548
pub associated_token_program: Program<'info, AssociatedToken>,
4649
pub token_program: Program<'info, Token>,
47-
}
50+
}

tokens/spl-token-minter/poseidon/ts-programs/src/splTokenMinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AssociatedTokenAccount, Mint, Pubkey, type Result, Signer, TokenProgram
1313
// under "to_account" & "mint_account" under "MintContext"
1414

1515
export default class SplTokenMinter {
16-
static PROGRAM_ID = new Pubkey('HFKNWrbYAfKsrWJu88RtUVHgVBNz1uJ6u2tNx1YCmAMZ');
16+
static PROGRAM_ID = new Pubkey("HFKNWrbYAfKsrWJu88RtUVHgVBNz1uJ6u2tNx1YCmAMZ");
1717

1818
createToken(mint: Mint, decimals: u8, payer: Signer, freezeAuthority: Pubkey): Result {
1919
mint.initIfNeeded();

0 commit comments

Comments
 (0)