Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jun 3, 2024
1 parent 7652839 commit d64ebc5
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions src/erc165/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ mod tests {
1,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -245,7 +247,9 @@ mod tests {
2,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -268,7 +272,9 @@ mod tests {
3,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_error_response_body(
Expand Down Expand Up @@ -300,7 +306,9 @@ mod tests {
1,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -323,7 +331,9 @@ mod tests {
2,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -346,7 +356,9 @@ mod tests {
3,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_error_response_body(
Expand Down Expand Up @@ -378,7 +390,9 @@ mod tests {
1,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -396,7 +410,9 @@ mod tests {
2,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -419,7 +435,9 @@ mod tests {
3,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a701ffc9a700000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_success_response_body(
Expand All @@ -437,7 +455,9 @@ mod tests {
4,
&AlloyTransactionRequest::new()
.with_to(Some(address))
.with_data(Some(decode("0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000").unwrap())),
.with_data(Some(decode(
"0x01ffc9a7ffffffff00000000000000000000000000000000000000000000000000000000"
).unwrap())),
));
then.json_body_obj(
&from_str::<Value>(&get_rpc_error_response_body(
Expand Down

0 comments on commit d64ebc5

Please sign in to comment.