Skip to content

Commit

Permalink
Merge pull request #38 from Creskendoll/fix/types
Browse files Browse the repository at this point in the history
Change ABI type to any
  • Loading branch information
clbrge authored Apr 2, 2022
2 parents 0604789 + 58c5e0e commit 8d3d084
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/svelte-web3.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Readable } from "svelte/store";
import Web3 from "web3";
import { provider } from "web3-core";
import { AbiItem } from "web3-utils";
import { ContractOptions, Contract } from "web3-eth-contract";

declare module "svelte-web3" {
Expand Down Expand Up @@ -119,13 +118,13 @@ declare module "svelte-web3" {
/**
* Allows you to create a Svelte derived store of a web3.eth.Contract object instance.
* It takes the same parameters as a ̀new web3.eth.Contract` call.
* @param jsonInterface The contract ABI array
* @param jsonInterface The contract ABI
* @param address The contract address
* @param options The contract options
* @returns A Svelte derived store of a web3.eth.Contract object instance
*/
function makeContractStore(
jsonInterface: AbiItem[],
jsonInterface: any,
address?: string,
options?: ContractOptions
): Readable<Contract>;
Expand Down

0 comments on commit 8d3d084

Please sign in to comment.