Skip to content

Commit

Permalink
Problem: invalid request in gas estimate (informalsystems#2)
Browse files Browse the repository at this point in the history
* fix lint

* avoid invalid request
  • Loading branch information
mmsqe authored Jan 18, 2024
1 parent 1d1153b commit 0181c46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/relayer/src/chain/cosmos/ethermint/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn estimate_gas(
trace!("estimate gas params: {}", params);

let request = json!({
"version": "2.0",
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": params,
"id": 1,
Expand Down
8 changes: 4 additions & 4 deletions crates/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,8 @@ mod tests {
},
];

assert_eq!(expected, parsed);
}
assert_eq!(expected, parsed);
}

#[test]
fn parse_empty_gas_price() {
Expand All @@ -840,6 +840,6 @@ mod tests {
denom: "token3".to_owned(),
}];

assert_eq!(expected, parsed);
}
assert_eq!(expected, parsed);
}
}

0 comments on commit 0181c46

Please sign in to comment.