Skip to content

Commit 7257f59

Browse files
chore: EthError has default empty inputs array
1 parent 6bc5100 commit 7257f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Core/EthereumABI/ABIElements.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public extension ABI {
163163
"\(name)(\(inputs.map { "\($0.type.abiRepresentation) \($0.name)".trim() }.joined(separator: ",")))"
164164
}
165165

166-
public init(name: String, inputs: [InOut]) {
166+
public init(name: String, inputs: [InOut] = []) {
167167
self.name = name.trim()
168168
self.inputs = inputs
169169
}

0 commit comments

Comments
 (0)