From ae10f1ecabb17987840fe1c3384e61658e7ebfba Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 6 Apr 2020 16:07:04 +0800 Subject: [PATCH] fix: properly export SYSTEM_INSTRUCTION_LAYOUTS --- web3.js/src/index.js | 6 +++++- web3.js/src/system-program.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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([