feat: add system-program TransferWithSeed implementation

This commit is contained in:
Tyera Eulberg 2021-01-14 11:26:27 -07:00
parent 1eb7681a85
commit 404be810bf
No known key found for this signature in database
GPG Key ID: 92310FD3120230CF
1 changed files with 2 additions and 1 deletions

View File

@ -446,6 +446,7 @@ test('live withSeed actions', async () => {
space, space,
); );
// Test CreateAccountWithSeed
const createAccountWithSeedParams = { const createAccountWithSeedParams = {
fromPubkey: basePubkey, fromPubkey: basePubkey,
newAccountPubkey: createAccountWithSeedAddress, newAccountPubkey: createAccountWithSeedAddress,
@ -469,7 +470,7 @@ test('live withSeed actions', async () => {
); );
expect(createAccountWithSeedBalance).toEqual(minimumAmount); expect(createAccountWithSeedBalance).toEqual(minimumAmount);
// Transfer to a derived address // Transfer to a derived address to prep for TransferWithSeed
const programId2 = new Account().publicKey; const programId2 = new Account().publicKey;
const transferWithSeedAddress = await PublicKey.createWithSeed( const transferWithSeedAddress = await PublicKey.createWithSeed(
basePubkey, basePubkey,