Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "6.5.3"
version = "6.5.4"
edition = "2021"

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions apps/fortuna/src/chain/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ impl<T: JsonRpcClient + 'static> EntropyReader for PythRandom<Provider<T>> {

async fn estimate_reveal_with_callback_gas(
&self,
sender: Address,
provider: Address,
sequence_number: u64,
user_random_number: [u8; 32],
Expand All @@ -391,6 +392,7 @@ impl<T: JsonRpcClient + 'static> EntropyReader for PythRandom<Provider<T>> {
user_random_number,
provider_revelation,
)
.from(sender)
.estimate_gas()
.await;

Expand Down
2 changes: 2 additions & 0 deletions apps/fortuna/src/chain/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub trait EntropyReader: Send + Sync {
/// Estimate the gas required to reveal a random number with a callback.
async fn estimate_reveal_with_callback_gas(
&self,
sender: Address,
provider: Address,
sequence_number: u64,
user_random_number: [u8; 32],
Expand Down Expand Up @@ -184,6 +185,7 @@ pub mod mock {

async fn estimate_reveal_with_callback_gas(
&self,
sender: Address,
provider: Address,
sequence_number: u64,
user_random_number: [u8; 32],
Expand Down
1 change: 1 addition & 0 deletions apps/fortuna/src/keeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ pub async fn process_event(
let gas_estimate_res = chain_config
.contract
.estimate_reveal_with_callback_gas(
contract.wallet().address(),
event.provider_address,
event.sequence_number,
event.user_random_number,
Expand Down
Loading