File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
chains/nomad-ethereum/src/gelato Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 79
79
) -> Result < TxOutcome , ChainCommunicationError > {
80
80
let RelayResponse { task_id } = self . dispatch_tx ( domain, contract_address, tx) . await ?;
81
81
82
- info ! ( task_id = ?& task_id, "Submitted tx to Gelato relay. Polling task for completion..." ) ;
82
+ info ! ( task_id = ?& task_id, "Submitted tx to Gelato relay." ) ;
83
+
84
+ info ! ( task_id = ?& task_id, "Polling Gelato task..." ) ;
83
85
self . poll_task_id ( task_id)
84
86
. await
85
87
. map_err ( |e| ChainCommunicationError :: TxSubmissionError ( e. into ( ) ) ) ?
Original file line number Diff line number Diff line change @@ -87,10 +87,12 @@ impl UnfilledFowardRequest {
87
87
fee_token : self . fee_token ,
88
88
payment_type : self . payment_type ,
89
89
max_fee : self . max_fee . to_string ( ) ,
90
+ gas : self . gas . to_string ( ) ,
90
91
sponsor : self . sponsor ,
91
92
sponsor_chain_id : self . sponsor_chain_id ,
92
93
nonce : self . nonce ,
93
94
enforce_sponsor_nonce : self . enforce_sponsor_nonce ,
95
+ enforce_sponsor_nonce_ordering : self . enforce_sponsor_nonce_ordering ,
94
96
sponsor_signature : hex_sig,
95
97
}
96
98
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ async fn main() -> Result<(), reqwest::Error> {
8
8
println ! ( "Relay chains: {:?}" , chains) ;
9
9
10
10
let task_status = gelato
11
- . get_task_status ( "0x1a976f2bed20b154cb02a8c039705e34d4f5971a0f7b82ae1cdfd80bc1636d8f " )
11
+ . get_task_status ( "0xce52ae7a6a3032848d76b161ac4c131fa995dcc67e3be5392dfb8466275d6679 " )
12
12
. await ?;
13
13
println ! ( "Task status: {:?}" , task_status) ;
14
14
Original file line number Diff line number Diff line change @@ -28,10 +28,12 @@ pub struct ForwardRequest {
28
28
pub fee_token : String ,
29
29
pub payment_type : usize , // 1 = gas tank
30
30
pub max_fee : String ,
31
+ pub gas : String ,
31
32
pub sponsor : String ,
32
33
pub sponsor_chain_id : usize , // same as chain_id
33
34
pub nonce : usize , // can default 0 if next field false
34
35
pub enforce_sponsor_nonce : bool , // default false given replay safe
36
+ pub enforce_sponsor_nonce_ordering : bool ,
35
37
pub sponsor_signature : String ,
36
38
}
37
39
You can’t perform that action at this time.
0 commit comments