Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Events in WASM runtime #6967

Merged
merged 1 commit into from Nov 10, 2017
Merged

Events in WASM runtime #6967

merged 1 commit into from Nov 10, 2017

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Nov 2, 2017

No description provided.

@debris debris added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 10, 2017
@debris
Copy link
Collaborator

debris commented Nov 10, 2017

@fckt can you also review it? and merge if it looks good

@5chdn 5chdn requested a review from lexfro November 10, 2017 15:02
@lexfro
Copy link
Contributor

lexfro commented Nov 10, 2017

looks good. Tested on dev chain also.

@lexfro lexfro merged commit df49b4b into master Nov 10, 2017
@debris debris deleted the wasm-elog branch November 10, 2017 15:42
topics.resize(topic_count as usize, H256::zero());
for i in 0..topic_count {
let offset = i.checked_mul(32).ok_or(UserTrap::MemoryAccessViolation)?
.checked_add(topic_ptr).ok_or(UserTrap::MemoryAccessViolation)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

checked_mul here seems like overkill given that 3 is the max value of i.

debris pushed a commit that referenced this pull request Nov 13, 2017
@debris debris mentioned this pull request Nov 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants