Skip to content

Commit

Permalink
fix(overloads): only accept warp contract as a contract config for ar…
Browse files Browse the repository at this point in the history
…iowritable
  • Loading branch information
Atticus committed Apr 9, 2024
1 parent c7860ed commit e3c97e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/ar-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ export class ArIO {
* // Overload 2: When signer is not provided
* const readable = ArIO.init({ contract: myContract });
*/
static init(config?: ContractConfiguration & WithSigner): ArIOWritable;
static init(
config?: ContractConfiguration &
WithSigner & { contract?: WarpContract<ArIOState> },
): ArIOWritable;
static init(config?: ContractConfiguration): ArIOReadable;
static init(
config: ContractConfiguration & { signer?: ContractSigner } = {},
Expand Down

0 comments on commit e3c97e9

Please sign in to comment.