diff --git a/programs/protocol-contracts-solana/src/lib.rs b/programs/protocol-contracts-solana/src/lib.rs index 2812b3d..6f062e7 100644 --- a/programs/protocol-contracts-solana/src/lib.rs +++ b/programs/protocol-contracts-solana/src/lib.rs @@ -89,11 +89,11 @@ pub mod gateway { } // whitelisting SPL tokens - pub fn whitelist_spl_mint(_ctx: Context) -> Result<()> { + pub fn whitelist_spl_mint(_ctx: Context) -> Result<()> { Ok(()) } - pub fn de_whitelist_spl_mint(_ctx: Context) -> Result<()> { + pub fn unwhitelist_spl_mint(_ctx: Context) -> Result<()> { Ok(()) } @@ -429,7 +429,7 @@ pub struct UpdatePaused<'info> { } #[derive(Accounts)] -pub struct AddToWhitelist<'info> { +pub struct Whitelist<'info> { #[account( init, space=8, @@ -452,7 +452,7 @@ pub struct AddToWhitelist<'info> { } #[derive(Accounts)] -pub struct DeleteFromWhitelist<'info> { +pub struct Unwhitelist<'info> { #[account( mut, seeds=[ diff --git a/tests/protocol-contracts-solana.ts b/tests/protocol-contracts-solana.ts index 65faa5e..daec59b 100644 --- a/tests/protocol-contracts-solana.ts +++ b/tests/protocol-contracts-solana.ts @@ -10,7 +10,7 @@ import {expect} from 'chai'; import {ecdsaRecover} from 'secp256k1'; import {getOrCreateAssociatedTokenAccount} from "@solana/spl-token"; - +console.log = function() {} const ec = new EC('secp256k1'); // const keyPair = ec.genKeyPair(); @@ -412,8 +412,8 @@ describe("some tests", () => { expect(bal2-bal1).to.be.gte(1_000_000_000); }) - it("de-whitelist SPL token and deposit should fail", async () => { - await gatewayProgram.methods.deWhitelistSplMint().accounts({ + it("unwhitelist SPL token and deposit should fail", async () => { + await gatewayProgram.methods.unwhitelistSplMint().accounts({ whitelistCandidate: mint.publicKey, }).rpc();