Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ABI type to any #38

Merged
merged 1 commit into from
Apr 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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