@@ -32,7 +32,7 @@ pub struct FlashtestationsService {
3232
3333// TODO: FlashtestationsService error types
3434impl FlashtestationsService {
35- pub fn new ( args : FlashtestationsArgs , funding_signer : Signer ) -> Self {
35+ pub fn new ( args : FlashtestationsArgs ) -> Self {
3636 let ( private_key, public_key, address) = generate_ethereum_keypair ( ) ;
3737 let tee_service_signer = Signer {
3838 address,
@@ -47,7 +47,8 @@ impl FlashtestationsService {
4747
4848 let tx_manager = TxManager :: new (
4949 tee_service_signer,
50- funding_signer,
50+ args. funding_key
51+ . expect ( "funding key required when flashtestations enabled" ) ,
5152 args. rpc_url ,
5253 args. registry_address
5354 . expect ( "registry address required when flashtestations enabled" ) ,
@@ -101,15 +102,14 @@ impl BuilderTx for FlashtestationsService {
101102
102103pub async fn spawn_flashtestations_service < Node > (
103104 args : FlashtestationsArgs ,
104- funding_signer : Signer ,
105105 ctx : & BuilderContext < Node > ,
106106) -> eyre:: Result < FlashtestationsService >
107107where
108108 Node : NodeBounds ,
109109{
110110 info ! ( "Flashtestations enabled" ) ;
111111
112- let flashtestations_service = FlashtestationsService :: new ( args. clone ( ) , funding_signer ) ;
112+ let flashtestations_service = FlashtestationsService :: new ( args. clone ( ) ) ;
113113 // Generates new key and registers the attestation onchain
114114 flashtestations_service. bootstrap ( ) . await ?;
115115
0 commit comments