Skip to content

Commit 4602cdf

Browse files
committed
update Oracle to use the new metadata struct
1 parent fbb0726 commit 4602cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+GasOracle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ extension Web3 {
139139
return transaction
140140
}
141141
}
142-
.map { $0.gasPrice }
142+
.map { $0.meta?.gasPrice ?? 0 }
143143

144144
return calculatePercentiles(for: lastNthBlockGasPrice)
145145
}

0 commit comments

Comments
 (0)