This repository was archived by the owner on May 26, 2023. It is now read-only.
File tree 2 files changed +4
-6
lines changed
packages/zilliqa-js-blockchain/src
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ import {
36
36
ZilliqaModule ,
37
37
} from '@zilliqa-js/core' ;
38
38
39
- import { Omit } from 'utility-types' ;
40
-
41
39
import { toTxParams } from './util' ;
42
40
43
41
export class Blockchain implements ZilliqaModule {
@@ -592,11 +590,9 @@ export class Blockchain implements ZilliqaModule {
592
590
* getSmartContracts
593
591
*
594
592
* @param {string } address
595
- * @returns {Promise<RPCResponse<Omit< ContractObj, 'init' | 'abi'> , string>> }
593
+ * @returns {Promise<RPCResponse<ContractObj[] , string>> }
596
594
*/
597
- getSmartContracts (
598
- addr : string ,
599
- ) : Promise < RPCResponse < Omit < ContractObj , 'init' | 'abi' > , string > > {
595
+ getSmartContracts ( addr : string ) : Promise < RPCResponse < ContractObj [ ] , string > > {
600
596
const address = validation . isBech32 ( addr ) ? fromBech32Address ( addr ) : addr ;
601
597
return this . provider . send (
602
598
RPCMethod . GetSmartContracts ,
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ export function toTxParams(
57
57
gasLimit : Long . fromString ( gasLimit , 10 ) ,
58
58
amount : new BN ( amount ) ,
59
59
nonce : parseInt ( nonce , 10 ) ,
60
+ code,
61
+ data,
60
62
receipt : {
61
63
...receipt ,
62
64
accepted : receipt . accepted ,
You can’t perform that action at this time.
0 commit comments