fix: properly export SYSTEM_INSTRUCTION_LAYOUTS

This commit is contained in:
Justin Starry 2020-04-06 16:07:04 +08:00 committed by Michael Vines
parent 5e1a26ce2e
commit ae10f1ecab
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,11 @@ export {
STAKE_INSTRUCTION_LAYOUTS,
StakeProgram,
} from './stake-program';
export {SystemInstruction, SystemProgram} from './system-program';
export {
SystemInstruction,
SystemProgram,
SYSTEM_INSTRUCTION_LAYOUTS,
} from './system-program';
export {Transaction, TransactionInstruction} from './transaction';
export {VALIDATOR_INFO_KEY, ValidatorInfo} from './validator-info';
export {VOTE_PROGRAM_ID, VoteAccount} from './vote-account';

View File

@ -363,7 +363,7 @@ export type SystemInstructionType = $Keys<typeof SYSTEM_INSTRUCTION_LAYOUTS>;
/**
* An enumeration of valid system InstructionType's
*/
const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
export const SYSTEM_INSTRUCTION_LAYOUTS = Object.freeze({
Create: {
index: 0,
layout: BufferLayout.struct([