Skip to content

Commit

Permalink
[entropy] audit: 7. Entropy providers may reveal seed before request …
Browse files Browse the repository at this point in the history
…is finalized (#1182)

* check request at the most recent finalized block

* update version
  • Loading branch information
Dev Kalra authored Dec 14, 2023
1 parent 654c1ea commit d420786
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "2.0.0"
version = "2.0.1"
edition = "2021"

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions fortuna/src/chain/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ impl EntropyReader for PythContract {
) -> Result<Option<reader::Request>> {
let r = self
.get_request(provider_address, sequence_number)
.block(ethers::core::types::BlockNumber::Finalized)
.call()
.await?;

Expand Down

0 comments on commit d420786

Please sign in to comment.