Javascript SDK of WoopChain protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdk/packages/harmony-contract/src/contractFactory.ts

15 lines
392 B

import { Wallet } from '@harmony-js/account';
import { Contract } from './contract';
import { ContractOptions } from './utils/options';
export class ContractFactory {
wallet: Wallet;
constructor(wallet: Wallet) {
this.wallet = wallet;
}
createContract(abi: any[], address?: string, options?: ContractOptions) {
return new Contract(abi, address, options, this.wallet);
}
}