Skip to content

Commit

Permalink
修改QCP Result Exec方法
Browse files Browse the repository at this point in the history
  • Loading branch information
TokenxyWZY committed Sep 16, 2019
1 parent 18d25d8 commit 6d44a5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion txs/qcpresult.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ func (tx *QcpTxResult) Exec(ctx context.Context) (result types.Result, crossTxQc
return
}

handler(ctx, tx)
//执行handler不计算GAS
newCtx, writeCache := ctx.WithGasMeter(types.NewInfiniteGasMeter()).CacheContext()
handler(newCtx, tx)
writeCache()
return
}

Expand Down

0 comments on commit 6d44a5e

Please sign in to comment.