Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 88c5896

Browse files
author
Noel
authored
feat(blockchain): remove contract dep (#398)
1 parent 0d43bfc commit 88c5896

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/zilliqa-js-blockchain/src/chain.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import { Transaction, util, Wallet } from '@zilliqa-js/account';
1919
import { fromBech32Address } from '@zilliqa-js/crypto';
2020
import { validation } from '@zilliqa-js/util';
21-
import { ContractObj, Value } from '@zilliqa-js/contract';
2221
import {
2322
BlockchainInfo,
2423
BlockList,
@@ -471,7 +470,7 @@ export class Blockchain implements ZilliqaModule {
471470

472471
// Returns the initialization (immutable) parameters of
473472
// a given smart contract, represented in a JSON format.
474-
getSmartContractInit(addr: string): Promise<RPCResponse<Value[], string>> {
473+
getSmartContractInit(addr: string): Promise<RPCResponse<any, string>> {
475474
const address = validation.isBech32(addr) ? fromBech32Address(addr) : addr;
476475
return this.provider.send(
477476
RPCMethod.GetSmartContractInit,
@@ -512,7 +511,7 @@ export class Blockchain implements ZilliqaModule {
512511
return this.provider.sendBatch(RPCMethod.GetSmartContractSubState, reqs);
513512
}
514513

515-
getSmartContracts(addr: string): Promise<RPCResponse<ContractObj[], string>> {
514+
getSmartContracts(addr: string): Promise<RPCResponse<any, string>> {
516515
const address = validation.isBech32(addr) ? fromBech32Address(addr) : addr;
517516
return this.provider.send(
518517
RPCMethod.GetSmartContracts,

packages/zilliqa-js-blockchain/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"include": ["src", "../../typings/**/*.d.ts"],
88
"references": [
99
{ "path": "../zilliqa-js-account" },
10-
{ "path": "../zilliqa-js-contract" },
10+
{ "path": "../zilliqa-js-crypto" },
1111
{ "path": "../zilliqa-js-core" }
1212
]
1313
}

0 commit comments

Comments
 (0)