|
18 | 18 | import { Transaction, util, Wallet } from '@zilliqa-js/account';
|
19 | 19 | import { fromBech32Address } from '@zilliqa-js/crypto';
|
20 | 20 | import { validation } from '@zilliqa-js/util';
|
21 |
| -import { ContractObj, Value } from '@zilliqa-js/contract'; |
22 | 21 | import {
|
23 | 22 | BlockchainInfo,
|
24 | 23 | BlockList,
|
@@ -471,7 +470,7 @@ export class Blockchain implements ZilliqaModule {
|
471 | 470 |
|
472 | 471 | // Returns the initialization (immutable) parameters of
|
473 | 472 | // 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>> { |
475 | 474 | const address = validation.isBech32(addr) ? fromBech32Address(addr) : addr;
|
476 | 475 | return this.provider.send(
|
477 | 476 | RPCMethod.GetSmartContractInit,
|
@@ -512,7 +511,7 @@ export class Blockchain implements ZilliqaModule {
|
512 | 511 | return this.provider.sendBatch(RPCMethod.GetSmartContractSubState, reqs);
|
513 | 512 | }
|
514 | 513 |
|
515 |
| - getSmartContracts(addr: string): Promise<RPCResponse<ContractObj[], string>> { |
| 514 | + getSmartContracts(addr: string): Promise<RPCResponse<any, string>> { |
516 | 515 | const address = validation.isBech32(addr) ? fromBech32Address(addr) : addr;
|
517 | 516 | return this.provider.send(
|
518 | 517 | RPCMethod.GetSmartContracts,
|
|
0 commit comments