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

externalities refactor #131

Merged
merged 11 commits into from
Jan 16, 2016
Merged

externalities refactor #131

merged 11 commits into from
Jan 16, 2016

Conversation

debris
Copy link
Collaborator

@debris debris commented Jan 16, 2016

removed sloppy gas calculation from externalities, fixed tests

fn depth(&self) -> usize;

/// Increments sstore refunds count by 1.
fn add_sstore_refund(&mut self);
Copy link
Contributor

Choose a reason for hiding this comment

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

inc not add

@gavofyork
Copy link
Contributor

minor renamings - U256::+= would be nice to have (and should be easy enough now we have a Uint trait). Othe than that looks good @arkpar - comments?

@debris debris added the A0-pleasereview 🤓 Pull request needs code review. label Jan 16, 2016
0
}

fn inc_sstore_refund(&mut self) {
Copy link
Contributor

Choose a reason for hiding this comment

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

inc_sstore_clears

*address = new_address.into_jit();
*io_gas = gas_left.low_u64();
},
evm::ContractCreateResult::Failed => unsafe {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be nice to have more info in the error about why it failed (depth or balance)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or maybe add some trace! logging

@arkpar
Copy link
Collaborator

arkpar commented Jan 16, 2016

Looks good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants