Skip to content

Commit

Permalink
spl-token-minter/steel - cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thewuhxyz committed Oct 30, 2024
1 parent 5301e70 commit 71f27ba
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 40 deletions.
6 changes: 3 additions & 3 deletions tokens/spl-token-minter/steel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"@metaplex-foundation/mpl-token-metadata": "^2.5.2",
"@solana/spl-token": "^0.3.7",
"@solana/web3.js": "^1.73.0",
"@solana/spl-token": "^0.4.9",
"@solana/web3.js": "^1.95.4",
"borsh": "^0.7.0",
"buffer": "^6.0.3",
"fs": "^0.0.1-security"
Expand All @@ -21,7 +21,7 @@
"borsh": "0.7.0",
"chai": "^4.3.4",
"mocha": "^9.0.3",
"solana-bankrun": "^0.3.0",
"solana-bankrun": "^0.4.0",
"ts-mocha": "^10.0.0",
"typescript": "^4.3.5",
"zx": "^8.1.4"
Expand Down
95 changes: 65 additions & 30 deletions tokens/spl-token-minter/steel/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tokens/spl-token-minter/steel/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ pub fn process_instruction(
accounts: &[AccountInfo],
data: &[u8],
) -> ProgramResult {
// Use crate::ID for program_id instead:
// Use `crate::ID` for program_id in your program
//
// e.g parse_instruction(&crate::ID, program_id, data)
// using program_id for testing purposes
//
let (ix, data) = parse_instruction(program_id, program_id, data)?;
let (ix, data) = parse_instruction(&crate::ID, program_id, data)?;

match ix {
SteelInstruction::CreateToken => CreateToken::process(accounts, data)?,
Expand Down
6 changes: 2 additions & 4 deletions tokens/spl-token-minter/steel/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { BN } from 'bn.js';
import { start } from 'solana-bankrun';
import { CreateTokenArgs, MintToArgs, MyInstruction } from './instructions';

describe('Create Tokens!', async () => {
const PROGRAM_ID = PublicKey.unique();
describe('SPL Token Minter!', async () => {
const PROGRAM_ID = new PublicKey('z7msBPQHDJjTvdQRoEcKyENgXDhSRYeHieN1ZMTqo35');
const context = await start(
[
{ name: 'spl_token_minter_steel_program', programId: PROGRAM_ID },
Expand Down Expand Up @@ -68,7 +68,6 @@ describe('Create Tokens!', async () => {

console.log('Success!');
console.log(` Mint Address: ${tokenMintKeypair.publicKey}`);
// console.log(` Tx Signature: ${sx}`);
});

test('Mint some tokens to your wallet!', async () => {
Expand Down Expand Up @@ -114,6 +113,5 @@ describe('Create Tokens!', async () => {

console.log('Success!');
console.log(` ATA Address: ${associatedTokenAccountAddress}`);
// console.log(` Tx Signature: ${sx}`);
});
});

0 comments on commit 71f27ba

Please sign in to comment.