Skip to content

Commit

Permalink
updated asserts to check values instead of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
setzeus committed Jan 22, 2024
1 parent 693a171 commit f26089c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions stackslib/src/chainstate/stacks/boot/pox_4_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

use std::collections::{ HashMap, HashSet, VecDeque};
use std::collections::{HashMap, HashSet, VecDeque};
use std::convert::{TryFrom, TryInto};

use clarity::vm::clarity::ClarityConnection;
Expand Down Expand Up @@ -1679,8 +1679,8 @@ fn delegate_stack_stx_signer_key() {
let state_signer_key = stacking_state.get("signer-key").unwrap();

assert_eq!(
state_signer_key.to_string(),
format!("0x{}", signer_public_key.to_hex())
state_signer_key,
&Value::buff_from(signer_public_key.to_bytes_compressed()).unwrap()
);
}

Expand Down Expand Up @@ -1749,8 +1749,8 @@ fn delegate_stack_stx_extend_signer_key() {
// Testing initial signer-key correctly set
let state_signer_key = stacking_state.get("signer-key").unwrap();
assert_eq!(
state_signer_key.to_string(),
format!("0x{}", signer_public_key.to_hex())
state_signer_key,
&Value::buff_from(signer_public_key.to_bytes_compressed()).unwrap()
);

stacker_nonce += 1;
Expand Down Expand Up @@ -1779,8 +1779,8 @@ fn delegate_stack_stx_extend_signer_key() {
// Testing new signer-key correctly set
let state_signer_key_new = new_stacking_state.get("signer-key").unwrap();
assert_eq!(
state_signer_key_new.to_string(),
format!("0x{}", new_signer_public_key.to_hex())
state_signer_key_new,
&Value::buff_from(new_signer_public_key.to_bytes_compressed()).unwrap()
);
}

Expand Down Expand Up @@ -1827,8 +1827,8 @@ fn stack_increase() {
// Testing initial signer-key correctly set
let state_signer_key = stacking_state.get("signer-key").unwrap();
assert_eq!(
state_signer_key.to_string(),
format!("0x{}", signer_public_key.to_hex())
state_signer_key,
&Value::buff_from(signer_public_key.to_bytes_compressed()).unwrap()
);

stacker_nonce += 1;
Expand Down

0 comments on commit f26089c

Please sign in to comment.