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

ckb-script: bump ckb-vm to v0.22.0 #3650

Merged
merged 3 commits into from
Oct 26, 2022
Merged

ckb-script: bump ckb-vm to v0.22.0 #3650

merged 3 commits into from
Oct 26, 2022

Conversation

mohanson
Copy link
Contributor

@mohanson mohanson requested a review from a team as a code owner October 21, 2022 08:16
@mohanson mohanson requested review from doitian and removed request for a team October 21, 2022 08:16
Comment on lines 907 to 910
#[cfg(has_asm)]
let machine = AsmMachine::new(default_machine, None);
let machine = AsmMachine::new(default_machine);
#[cfg(not(has_asm))]
let machine = TraceMachine::new(default_machine);
Copy link
Member

@quake quake Oct 21, 2022

Choose a reason for hiding this comment

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

suggest to use the alias Machine since the constructor is same now:

-       #[cfg(has_asm)]
-       let machine = AsmMachine::new(default_machine);
-       #[cfg(not(has_asm))]
-       let machine = TraceMachine::new(default_machine);
+       let machine = Machine::new(default_machine);

@zhangsoledad
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 26, 2022

@bors bors bot merged commit 32f1b03 into nervosnetwork:develop Oct 26, 2022
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.

3 participants