Skip to content

Commit

Permalink
pcli(integration): fix delegation token regex
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed May 2, 2024
1 parent 6d7b960 commit 0cc7d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bin/pcli/tests/network_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fn delegate_and_undelegate() {
// need to pull the amount of delegation tokens we obtained so that we can later
// try to execute an undelegation (`tx undelegate <AMOUNT><DELEGATION_TOKEN_DENOM>`).
// To do this, we use a regex to extract the amount of delegation tokens we obtained:
let delegation_token_pattern = Regex::new(r"(\d+\.?\d?delegation_[a-zA-Z0-9]*)").unwrap();
let delegation_token_pattern = Regex::new(r"(\d+\.?\d?m?delegation_[a-zA-Z0-9]*)").unwrap();
let (delegation_token_str, [_match]) = delegation_token_pattern
.captures(&balance_output_string)
.expect("can find delegation token in balance output")
Expand Down

0 comments on commit 0cc7d9e

Please sign in to comment.