Skip to content

Commit 55843c1

Browse files
committed
fix ABI stuff in fortuna
1 parent 0f0a14c commit 55843c1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/fortuna/src/command/inspect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use {
22
crate::{
3-
chain::ethereum::{PythContract, Request},
3+
chain::ethereum::{PythContract, EntropyStructsV2Request},
44
config::{Config, EthereumConfig, InspectOptions},
55
},
66
anyhow::Result,
@@ -66,7 +66,7 @@ async fn inspect_chain(
6666
);
6767
current_request_number -= 1;
6868
}
69-
let return_data: Vec<Request> = multicall.call_array().await?;
69+
let return_data: Vec<EntropyStructsV2Request> = multicall.call_array().await?;
7070
for request in return_data {
7171
process_request(rpc_provider.clone(), request).await?;
7272
}
@@ -89,7 +89,7 @@ async fn inspect_chain(
8989
Ok(())
9090
}
9191

92-
async fn process_request(rpc_provider: Provider<Http>, request: Request) -> Result<()> {
92+
async fn process_request(rpc_provider: Provider<Http>, request: EntropyStructsV2Request) -> Result<()> {
9393
if request.sequence_number != 0 && request.callback_status != 0 {
9494
let block = rpc_provider
9595
.get_block(request.block_number)

apps/fortuna/src/command/setup_provider.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use {
22
crate::{
33
api::{get_register_uri, ChainId},
4-
chain::ethereum::{ProviderInfo, SignablePythContract},
4+
chain::ethereum::{EntropyStructsV2ProviderInfo, SignablePythContract},
55
command::register_provider::{register_provider_from_config, CommitmentMetadata},
66
config::{Config, EthereumConfig, SetupProviderOptions},
77
state::{HashChainState, PebbleHashChain},
@@ -178,7 +178,7 @@ async fn setup_chain_provider(
178178

179179
async fn sync_uri(
180180
contract: &Arc<SignablePythContract>,
181-
provider_info: &ProviderInfo,
181+
provider_info: &EntropyStructsV2ProviderInfo,
182182
uri: String,
183183
) -> Result<()> {
184184
let uri_as_bytes: Bytes = AbiBytes::from(uri.as_str()).into();
@@ -198,7 +198,7 @@ async fn sync_uri(
198198

199199
async fn sync_fee(
200200
contract: &Arc<SignablePythContract>,
201-
provider_info: &ProviderInfo,
201+
provider_info: &EntropyStructsV2ProviderInfo,
202202
provider_fee: u128,
203203
) -> Result<()> {
204204
if provider_info.fee_in_wei != provider_fee {
@@ -217,7 +217,7 @@ async fn sync_fee(
217217

218218
async fn sync_fee_manager(
219219
contract: &Arc<SignablePythContract>,
220-
provider_info: &ProviderInfo,
220+
provider_info: &EntropyStructsV2ProviderInfo,
221221
fee_manager: Address,
222222
) -> Result<()> {
223223
if provider_info.fee_manager != fee_manager {
@@ -231,7 +231,7 @@ async fn sync_fee_manager(
231231

232232
async fn sync_max_num_hashes(
233233
contract: &Arc<SignablePythContract>,
234-
provider_info: &ProviderInfo,
234+
provider_info: &EntropyStructsV2ProviderInfo,
235235
max_num_hashes: u32,
236236
) -> Result<()> {
237237
if provider_info.max_num_hashes != max_num_hashes {

0 commit comments

Comments
 (0)