We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 173a3ba + bf2dd38 commit c6ec043Copy full SHA for c6ec043
Sources/Core/Contract/ContractProtocol.swift
@@ -263,7 +263,7 @@ extension DefaultContractProtocol {
263
let method = Data.fromHex(method) == nil ? method : method.addHexPrefix().lowercased()
264
265
// MARK: - Encoding ABI Data flow
266
- guard let abiMethod = methods[method]?.first,
+ guard let abiMethod = methods[method]?.first(where: { $0.inputs.count == parameters.count }),
267
var encodedData = abiMethod.encodeParameters(parameters) else { return nil }
268
269
// Extra data just appends in the end of parameters data
0 commit comments