Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade ckb related deps for latest version #94

Merged
merged 5 commits into from
Jul 12, 2023

Conversation

xxuejie
Copy link
Collaborator

@xxuejie xxuejie commented Jul 6, 2023

No description provided.

@@ -32,14 +33,16 @@ fn test_multisig_script_hash() {
let keys = generate_keys(3);
let multi_sign_script = gen_multi_sign_script(&keys, 2, 0);
let args = blake160(&multi_sign_script);
let lock_script = gen_multi_sign_lock_script(args.clone());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is weird: this is only used in assertion. We use a function like below:

pub fn assert_script_error(err: Error, err_code: i8) {
    let error_string = err.to_string();
    assert!(
        error_string.contains(format!("error code {}", err_code).as_str()),
        "error_string: {}, expected_error_code: {}",
        error_string,
        err_code
    );
}

Copy link
Collaborator Author

@xxuejie xxuejie Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was mainly on the smallest change to get the tests back working(let's just say that this repo has long pre-dated all the testing tools we build), while also testing full equalness for the error object. Personally I think either way works, I don't have a preference.

@xxuejie xxuejie merged commit 40ee6f1 into nervosnetwork:master Jul 12, 2023
4 checks passed
@xxuejie xxuejie deleted the upgrade-ckb-deps branch July 12, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants