Skip to content

Commit b6000e9

Browse files
committed
fix TransactionOptions decoding of callOnBlock using incorrect key of .nonce
1 parent 30711bb commit b6000e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+Structures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extension TransactionOptions: Decodable {
9191
self.nonce = .pending
9292
}
9393

94-
if let callOnBlock = try decodeHexToBigUInt(container, key: .nonce) {
94+
if let callOnBlock = try decodeHexToBigUInt(container, key: .callOnBlock) {
9595
self.callOnBlock = .exactBlockNumber(callOnBlock)
9696
} else {
9797
self.callOnBlock = .pending

0 commit comments

Comments
 (0)