Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
chore(executor): Use quota left. (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsceticBear authored and yejiayu committed Jul 8, 2019
1 parent 3e0000b commit ab0e102
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/executor/src/evm/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,16 +431,16 @@ fn build_receipt_with_ok(signed_tx: &SignedTransaction, result: InterpreterResul
let quota = signed_tx.untx.transaction.quota;

match result {
InterpreterResult::Normal(_data, quota_used, logs) => {
receipt.quota_used = quota - quota_used;
InterpreterResult::Normal(_data, quota_left, logs) => {
receipt.quota_used = quota - quota_left;
receipt.logs = transform_logs(logs);
receipt.logs_bloom = logs_to_bloom(&receipt.logs);
}
InterpreterResult::Revert(_data, quota_used) => {
receipt.quota_used = quota - quota_used;
InterpreterResult::Revert(_data, quota_left) => {
receipt.quota_used = quota - quota_left;
}
InterpreterResult::Create(_data, quota_used, logs, contract_address) => {
receipt.quota_used = quota - quota_used;
InterpreterResult::Create(_data, quota_left, logs, contract_address) => {
receipt.quota_used = quota - quota_left;
receipt.logs = transform_logs(logs);
receipt.logs_bloom = logs_to_bloom(&receipt.logs);

Expand Down

0 comments on commit ab0e102

Please sign in to comment.