Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Giannis Chatziveroglou committed Nov 9, 2022
1 parent f26f5d5 commit c0eb275
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 206 deletions.
192 changes: 5 additions & 187 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cardinal-creator-standard",
"version": "1.0.5",
"version": "1.0.6",
"description": "SDK for cardinal-creator-standard",
"main": "index.ts",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions programs/cardinal-creator-standard/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-creator-standard"
version = "1.0.5"
version = "1.0.6"
description = "The Cardinal Creator Standard"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -23,7 +23,7 @@ default = []
solana-program = "1.10.29"
shank = "^0.0.5"
spl-token = { version = "3.3.0", features = ["no-entrypoint"] }
spl-associated-token-account = { version = "1.1.1", features = [ "no-entrypoint"] }
spl-associated-token-account = { version = "=1.0.5", features = [ "no-entrypoint"] }
mpl-token-metadata = { version = "1.3.3", features = [ "no-entrypoint" ] }
thiserror = "^1.0.24"
borsh = "0.9.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use solana_program::program::invoke_signed;
use solana_program::program_error::ProgramError;
use solana_program::system_program;
use solana_program::sysvar;
use spl_associated_token_account::instruction::create_associated_token_account;
use spl_associated_token_account::create_associated_token_account;

pub struct InitializeAccountCtx<'a, 'info> {
pub mint: &'a AccountInfo<'info>,
Expand Down Expand Up @@ -72,19 +72,13 @@ impl<'a, 'info> InitializeAccountCtx<'a, 'info> {

pub fn handler(ctx: InitializeAccountCtx) -> ProgramResult {
invoke_signed(
&create_associated_token_account(
ctx.payer.key,
ctx.token_account.key,
ctx.mint.key,
ctx.token_program.key,
),
&create_associated_token_account(ctx.payer.key, ctx.token_account.key, ctx.mint.key),
&[
ctx.payer.clone(),
ctx.token_account.clone(),
ctx.owner.clone(),
ctx.mint.clone(),
ctx.system_program.clone(),
ctx.token_program.clone(),
ctx.rent.clone(),
],
&[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ use solana_program::system_instruction::create_account;
use solana_program::system_program;
use solana_program::sysvar;
use solana_program::sysvar::Sysvar;
use spl_associated_token_account::create_associated_token_account;
use spl_associated_token_account::get_associated_token_address;
use spl_associated_token_account::instruction::create_associated_token_account;
use std::str::FromStr;

pub struct InitializeMintCtx<'a, 'info> {
Expand Down Expand Up @@ -189,19 +189,13 @@ pub fn handler(ctx: InitializeMintCtx) -> ProgramResult {
}
if ctx.target_token_account.data_is_empty() {
invoke_signed(
&create_associated_token_account(
ctx.payer.key,
ctx.target.key,
ctx.mint.key,
ctx.token_program.key,
),
&create_associated_token_account(ctx.payer.key, ctx.target.key, ctx.mint.key),
&[
ctx.payer.clone(),
ctx.target_token_account.clone(),
ctx.target.clone(),
ctx.mint.clone(),
ctx.system_program.clone(),
ctx.token_program.clone(),
ctx.rent.clone(),
],
&[],
Expand Down

0 comments on commit c0eb275

Please sign in to comment.