feat: add system-program TransferWithSeed implementation
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user