feat: add room in the API for Transactions with multiple Instructions

This commit is contained in:
Michael Vines
2018-10-23 15:17:43 -07:00
parent 90c9df15ef
commit b8d586c67e
7 changed files with 120 additions and 65 deletions

View File

@ -46,8 +46,7 @@ export class SystemProgram {
userdata,
);
return new Transaction({
fee: 0,
return new Transaction().add({
keys: [from, newAccount],
programId: SystemProgram.programId,
userdata,
@ -72,8 +71,7 @@ export class SystemProgram {
userdata,
);
return new Transaction({
fee: 0,
return new Transaction().add({
keys: [from, to],
programId: SystemProgram.programId,
userdata,
@ -98,8 +96,7 @@ export class SystemProgram {
userdata,
);
return new Transaction({
fee: 0,
return new Transaction().add({
keys: [from],
programId: SystemProgram.programId,
userdata,
@ -122,8 +119,7 @@ export class SystemProgram {
userdata,
);
return new Transaction({
fee: 0,
return new Transaction().add({
keys: [programId],
programId: SystemProgram.programId,
userdata,