Skip to content

Commit

Permalink
propagate gas outputs in fvm ApplyRet
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed May 4, 2022
1 parent 5558ec8 commit 73907b2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions chain/vm/fvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (

"github.com/filecoin-project/go-state-types/network"

"github.com/filecoin-project/go-state-types/big"

"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/state"
cbor "github.com/ipfs/go-ipld-cbor"
Expand Down Expand Up @@ -339,14 +337,13 @@ func (vm *FVM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet
GasUsed: ret.GasUsed,
},
GasCosts: &GasOutputs{
// TODO: do the other optional fields eventually
BaseFeeBurn: big.Zero(),
OverEstimationBurn: big.Zero(),
BaseFeeBurn: ret.BaseFeeBurn,
OverEstimationBurn: ret.OverEstimationBurn,
MinerPenalty: ret.MinerPenalty,
MinerTip: ret.MinerTip,
Refund: big.Zero(),
GasRefund: 0,
GasBurned: 0,
Refund: ret.Refund,
GasRefund: ret.GasRefund,
GasBurned: ret.GasBurned,
},
ActorErr: nil,
ExecutionTrace: et.ToExecutionTrace(),
Expand Down

0 comments on commit 73907b2

Please sign in to comment.