From 546915ee1235e9e4bde2b69ade45224c1ae31439 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Tue, 3 Nov 2020 13:40:45 -0700 Subject: [PATCH] fix: update StakeProgram.space() (#13371) --- web3.js/src/stake-program.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web3.js/src/stake-program.js b/web3.js/src/stake-program.js index 1455545134..01dbb947c0 100644 --- a/web3.js/src/stake-program.js +++ b/web3.js/src/stake-program.js @@ -482,9 +482,13 @@ export class StakeProgram { /** * Max space of a Stake account + * + * This is generated from the solana-stake-program StakeState struct as + * `std::mem::size_of::()`: + * https://docs.rs/solana-stake-program/1.4.4/solana_stake_program/stake_state/enum.StakeState.html */ static get space(): number { - return 4008; + return 200; } /**