Comparing version 0.3.16 to 0.3.17
@@ -9,3 +9,3 @@ "use strict"; | ||
import { Listener, Provider } from 'ethers/providers'; | ||
import { BigNumber, Interface } from "ethers/utils"; | ||
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; | ||
import { TransactionOverrides, TypedEventDescription, TypedFunctionDescription } from "."; | ||
@@ -128,8 +128,9 @@ | ||
} | ||
// https://docs.ethers.io/ethers.js/html/api-contract.html#types | ||
function generateInputType(evmType) { | ||
switch (evmType.constructor) { | ||
case typeParser_1.IntegerType: | ||
return "number | string | BigNumber"; | ||
return "BigNumberish"; | ||
case typeParser_1.UnsignedIntegerType: | ||
return "number | string | BigNumber"; | ||
return "BigNumberish"; | ||
case typeParser_1.AddressType: | ||
@@ -139,3 +140,3 @@ return "string"; | ||
case typeParser_1.DynamicBytesType: | ||
return "string"; | ||
return "Arrayish"; | ||
case typeParser_1.ArrayType: | ||
@@ -142,0 +143,0 @@ return `(${generateInputType(evmType.itemType)})[]`; |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.3.16", | ||
"version": "0.3.17", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "repository": "https://github.com/ethereum-ts/Typechain", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
472614
3130