Skip to content

Commit e25ef49

Browse files
committed
Fix rename
1 parent 4230e10 commit e25ef49

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/compilerWrapper.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { writeFileSync, readFileSync, mkdtempSync, copyFileSync } from 'fs';
88
import { join } from 'path';
99
import { buildContractClass } from '../src/contract';
1010
import { findCompiler } from '../src/findCompiler';
11-
import { Ripemd160, PubKey, toHex, Sig, ContractArtifact } from '../src';
11+
import { Ripemd160, PubKey, toHex, Sig, Artifact } from '../src';
1212

1313
describe('compile()', () => {
1414
it('compile successfully', () => {
@@ -107,7 +107,7 @@ describe('compile()', () => {
107107

108108

109109
describe('artifact should be as expected', () => {
110-
let artifact: ContractArtifact;
110+
let artifact: Artifact;
111111
before(() => {
112112
artifact = loadArtifact('tokenUtxo.json');
113113
});

test/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { join } from 'path';
22
import { readFileSync, existsSync } from 'fs';
33
import { bsv } from '../src/utils';
4-
import { ContractArtifact } from '../src/contract';
5-
export function loadArtifact(fileName: string): ContractArtifact {
4+
import { Artifact } from '../src/contract';
5+
export function loadArtifact(fileName: string): Artifact {
66
return JSON.parse(readFileSync(join(__dirname, "../out/", fileName)).toString());
77
}
88

0 commit comments

Comments
 (0)