File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,7 @@ impl StarknetOptions {
7070 }
7171
7272 /// Returns a [`JsonRpcClient`] from the given rpc url and headers.
73- pub fn provider_from_url (
74- & self ,
75- headers : Option < Vec < ( String , String ) > > ,
76- ) -> Result < JsonRpcClient < HttpTransport > > {
73+ pub fn provider_from_url ( & self ) -> Result < JsonRpcClient < HttpTransport > > {
7774 let client =
7875 ClientBuilder :: default ( ) . timeout ( Self :: DEFAULT_REQUEST_TIMEOUT ) . build ( ) . unwrap ( ) ;
7976
@@ -86,12 +83,6 @@ impl StarknetOptions {
8683 transport. add_header ( header. name . clone ( ) , header. value . clone ( ) ) ;
8784 }
8885
89- if let Some ( headers) = headers {
90- for header in headers. into_iter ( ) {
91- transport. add_header ( header. 0 , header. 1 ) ;
92- }
93- }
94-
9586 Ok ( JsonRpcClient :: new ( transport) )
9687 }
9788
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ pub async fn get_account_from_env(
191191 account : AccountOptions ,
192192 starknet : & StarknetOptions ,
193193) -> Result < SozoAccount < JsonRpcClient < HttpTransport > > > {
194- let provider = starknet. provider_from_url ( None ) ?;
194+ let provider = starknet. provider_from_url ( ) ?;
195195
196196 account. account ( provider, None , starknet, & HashMap :: new ( ) ) . await
197197}
You can’t perform that action at this time.
0 commit comments