Skip to content

Commit 3ec8b24

Browse files
committed
Update Web3+ERC165.swift
1 parent e92e2e9 commit 3ec8b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Tokens/ERC165/Web3+ERC165.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ERC165: IERC165 {
4040
let contract = self.contract
4141
var transactionOptions = TransactionOptions()
4242
transactionOptions.callOnBlock = .latest
43-
transactionOptions.gasLimit = .manual(30000)
43+
transactionOptions.gasLimit = .automatic
4444
let result = try contract.read("supportsInterface", parameters: [interfaceID] as [AnyObject], extraData: Data(), transactionOptions: self.transactionOptions)!.call(transactionOptions: transactionOptions)
4545
guard let res = result["0"] as? Bool else {throw Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node")}
4646
return res

0 commit comments

Comments
 (0)