Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kuegi committed Jun 14, 2023
1 parent 3901a5c commit ad0ac67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ain-grpc/src/transaction_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl From<TransactionRequest> for Option<TransactionMessage> {
gas_limit: req.gas.unwrap_or_default(),
value: req.value.unwrap_or_default(),
input: req.input.map(Bytes::into_vec)
.unwrap_or(req.data.map(Bytes::into_vec).unwrap_or_default()),
.unwrap_or(req.data.map(Bytes::into_vec).unwrap_or_default()),
action: match req.to {
Some(to) => ethereum::TransactionAction::Call(to),
None => ethereum::TransactionAction::Create,
Expand All @@ -71,7 +71,7 @@ impl From<TransactionRequest> for Option<TransactionMessage> {
gas_limit: req.gas.unwrap_or_default(),
value: req.value.unwrap_or_default(),
input: req.input.map(Bytes::into_vec)
.unwrap_or(req.data.map(Bytes::into_vec).unwrap_or_default()),
.unwrap_or(req.data.map(Bytes::into_vec).unwrap_or_default()),
action: match req.to {
Some(to) => ethereum::TransactionAction::Call(to),
None => ethereum::TransactionAction::Create,
Expand All @@ -89,7 +89,7 @@ impl From<TransactionRequest> for Option<TransactionMessage> {
gas_limit: req.gas.unwrap_or_default(),
value: req.value.unwrap_or_default(),
input: req.input.map(Bytes::into_vec)
.unwrap_or(req.data.map(Bytes::into_vec).unwrap_or_default()),
.unwrap_or(req.data.map(Bytes::into_vec).unwrap_or_default()),
action: match req.to {
Some(to) => ethereum::TransactionAction::Call(to),
None => ethereum::TransactionAction::Create,
Expand Down

0 comments on commit ad0ac67

Please sign in to comment.