parent
189807f5a5
commit
df886a7a40
|
@ -75,6 +75,7 @@ showBalance()
|
|||
connection,
|
||||
transaction,
|
||||
account1,
|
||||
contractState,
|
||||
);
|
||||
})
|
||||
.then(confirmTransaction)
|
||||
|
|
|
@ -113,6 +113,7 @@ getTransactionFee().then(feeCalculator => {
|
|||
connection,
|
||||
transaction,
|
||||
account1,
|
||||
contractState,
|
||||
);
|
||||
})
|
||||
.then(confirmTransaction)
|
||||
|
|
|
@ -65,7 +65,7 @@ export class Loader {
|
|||
data.length,
|
||||
programId,
|
||||
);
|
||||
await sendAndConfirmTransaction(connection, transaction, payer);
|
||||
await sendAndConfirmTransaction(connection, transaction, payer, program);
|
||||
}
|
||||
|
||||
const dataLayout = BufferLayout.struct([
|
||||
|
|
|
@ -184,7 +184,7 @@ export class SystemProgram {
|
|||
return new Transaction().add({
|
||||
keys: [
|
||||
{pubkey: from, isSigner: true, isWritable: true},
|
||||
{pubkey: newAccount, isSigner: false, isWritable: true},
|
||||
{pubkey: newAccount, isSigner: true, isWritable: true},
|
||||
],
|
||||
programId: SystemProgram.programId,
|
||||
data,
|
||||
|
|
Loading…
Reference in New Issue