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

fix revert not interrupt execution #2

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

bxq2011hust
Copy link
Member

No description provided.

@bxq2011hust bxq2011hust merged commit 922d385 into FISCO-BCOS:main Jun 5, 2023
1 check passed
@@ -329,7 +330,11 @@ impl EnvInterface for EnvironmentInterface {
let caller = "revert";
match &self.wasm_memory {
Some(wasm_memory) => {
wasm_memory_read(wasm_memory, &store, data_offset as usize, buffer, caller)
if self.host_context.get_host_context().version >= 0x03040000 {
Copy link
Member

Choose a reason for hiding this comment

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

为了与历史兼容,添加版本号判断,后面可以将此magic number 0x03040000 提取出一个类来管理

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