Skip to content

Commit 8e4d015

Browse files
committed
add provider::new()
1 parent 7158067 commit 8e4d015

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/eth.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ pub struct Provider {
147147
}
148148

149149
impl Provider {
150+
/// Instantiate a new provider.
151+
pub fn new(chain_id: u64, request_timeout: u64) -> Self {
152+
Self {
153+
chain_id,
154+
request_timeout,
155+
}
156+
}
150157
/// Sends a request based on the specified `EthAction` and parses the response.
151158
///
152159
/// This function constructs a request targeting the Ethereum distribution system, serializes the provided `EthAction`,

0 commit comments

Comments
 (0)