fix: fixes needed for createAccountWithSeed and sol-lamport ratio

This commit is contained in:
Tyera Eulberg
2019-12-31 11:00:45 -07:00
committed by Michael Vines
parent 8541868587
commit bed42ac26b
2 changed files with 7 additions and 2 deletions

View File

@@ -243,6 +243,7 @@ export class StakeProgram {
static createAccountWithSeed(
from: PublicKey,
stakeAccount: PublicKey,
base: PublicKey,
seed: string,
authorized: Authorized,
lockup: Lockup,
@@ -251,6 +252,7 @@ export class StakeProgram {
let transaction = SystemProgram.createAccountWithSeed(
from,
stakeAccount,
base,
seed,
lamports,
this.space,