There was an error while loading. Please reload this page.
1 parent e92e2e9 commit 3ec8b24Copy full SHA for 3ec8b24
Sources/web3swift/Tokens/ERC165/Web3+ERC165.swift
@@ -40,7 +40,7 @@ public class ERC165: IERC165 {
40
let contract = self.contract
41
var transactionOptions = TransactionOptions()
42
transactionOptions.callOnBlock = .latest
43
- transactionOptions.gasLimit = .manual(30000)
+ transactionOptions.gasLimit = .automatic
44
let result = try contract.read("supportsInterface", parameters: [interfaceID] as [AnyObject], extraData: Data(), transactionOptions: self.transactionOptions)!.call(transactionOptions: transactionOptions)
45
guard let res = result["0"] as? Bool else {throw Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node")}
46
return res
0 commit comments