s/contract_id/program_id/g

This commit is contained in:
Michael Vines
2018-09-24 19:17:59 -07:00
parent 4f2f41d25f
commit 4a484158f3
2 changed files with 5 additions and 5 deletions

View File

@ -5,13 +5,13 @@ import {BudgetProgram} from '../src/budget-program';
test('pay', () => { test('pay', () => {
const from = new Account(); const from = new Account();
const contract = new Account(); const program = new Account();
const to = new Account(); const to = new Account();
let transaction; let transaction;
transaction = BudgetProgram.pay( transaction = BudgetProgram.pay(
from.publicKey, from.publicKey,
contract.publicKey, program.publicKey,
to.publicKey, to.publicKey,
123, 123,
); );
@ -20,7 +20,7 @@ test('pay', () => {
transaction = BudgetProgram.pay( transaction = BudgetProgram.pay(
from.publicKey, from.publicKey,
contract.publicKey, program.publicKey,
to.publicKey, to.publicKey,
123, 123,
BudgetProgram.signatureCondition(from.publicKey), BudgetProgram.signatureCondition(from.publicKey),
@ -30,7 +30,7 @@ test('pay', () => {
transaction = BudgetProgram.pay( transaction = BudgetProgram.pay(
from.publicKey, from.publicKey,
contract.publicKey, program.publicKey,
to.publicKey, to.publicKey,
123, 123,
BudgetProgram.signatureCondition(from.publicKey), BudgetProgram.signatureCondition(from.publicKey),

View File

@ -204,7 +204,7 @@ test('request airdrop', async () => {
{ {
error: null, error: null,
result: { result: {
contract_id: [ program_id: [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
], ],