-
Notifications
You must be signed in to change notification settings - Fork 1.7k
externalities refactor #131
Conversation
fn depth(&self) -> usize; | ||
|
||
/// Increments sstore refunds count by 1. | ||
fn add_sstore_refund(&mut self); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inc not add
minor renamings - |
…efunds_count -> sstore_clears_count. Also removed all unnecessary copying of transaction code/data.
0 | ||
} | ||
|
||
fn inc_sstore_refund(&mut self) { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
Looks good |
removed sloppy gas calculation from externalities, fixed tests