Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
refactor schema name
Browse files Browse the repository at this point in the history
  • Loading branch information
nasjuice committed May 6, 2024
1 parent 5af1db2 commit 7914ef1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/rpc-graphql/src/__tests__/transaction-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2475,15 +2475,15 @@ describe('transaction', () => {
});
});

it('disable-non-confidential-transfer-confidential-credits', async () => {
it('disable-confidential-transfer-non-confidential-credits', async () => {
expect.assertions(1);
const source = /* GraphQL */ `
query testQuery($signature: Signature!) {
transaction(signature: $signature) {
message {
instructions {
programId
... on SplTokenDisableNonConfidentialTransferConfidentialCredits {
... on SplTokenDisableConfidentialTransferNonConfidentialCredits {
account {
address
}
Expand Down
6 changes: 3 additions & 3 deletions packages/rpc-graphql/src/resolvers/instruction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ export const instructionResolvers = {
multisigOwner: resolveAccount('multisigOwner'),
owner: resolveAccount('owner'),
},
SplTokenDisableCpiGuardInstruction: {
SplTokenDisableConfidentialTransferNonConfidentialCredits: {
account: resolveAccount('account'),
multisigOwner: resolveAccount('multisigOwner'),
owner: resolveAccount('owner'),
},
SplTokenDisableNonConfidentialTransferConfidentialCredits: {
SplTokenDisableCpiGuardInstruction: {
account: resolveAccount('account'),
multisigOwner: resolveAccount('multisigOwner'),
owner: resolveAccount('owner'),
Expand Down Expand Up @@ -777,7 +777,7 @@ export const instructionResolvers = {
return 'SplTokenEnableConfidentialTransferNonConfidentialCredits';
}
if (jsonParsedConfigs.instructionType === 'disableNonConfidentialTransferConfidentialCredits') {
return 'SplTokenDisableNonConfidentialTransferConfidentialCredits';
return 'SplTokenDisableConfidentialTransferNonConfidentialCredits';
}
}
if (jsonParsedConfigs.programName === 'stake') {
Expand Down
4 changes: 2 additions & 2 deletions packages/rpc-graphql/src/schema/instruction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,9 @@ export const instructionTypeDefs = /* GraphQL */ `
signers: [Address]
}
"""
SplToken-2022: DisableNonConfidentialTransferConfidentialCredits instruction
SplToken-2022: DisableConfidentialTransferNonConfidentialCredits instruction
"""
type SplTokenDisableNonConfidentialTransferConfidentialCredits implements TransactionInstruction {
type SplTokenDisableConfidentialTransferNonConfidentialCredits implements TransactionInstruction {
programId: Address
account: Account
multisigOwner: Account
Expand Down

0 comments on commit 7914ef1

Please sign in to comment.