diff --git a/web3.js/src/index.js b/web3.js/src/index.js index 3b1cded016..2f8353c33b 100644 --- a/web3.js/src/index.js +++ b/web3.js/src/index.js @@ -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'; diff --git a/web3.js/src/system-program.js b/web3.js/src/system-program.js index 9ede5e9bd6..2b01c3b460 100644 --- a/web3.js/src/system-program.js +++ b/web3.js/src/system-program.js @@ -363,7 +363,7 @@ export type SystemInstructionType = $Keys; /** * 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([