fix(conformance): pass Timestamp through ExecuteMessageParams (#11891)

This commit is contained in:
Jon
2024-04-19 12:06:41 +10:00
committed by GitHub
parent 5f7aaaa8f9
commit 031802eb08
+2
View File
@@ -196,6 +196,7 @@ func (d *Driver) ExecuteTipset(bs blockstore.Blockstore, ds ds.Batching, params
type ExecuteMessageParams struct {
Preroot cid.Cid
Epoch abi.ChainEpoch
Timestamp uint64
Message *types.Message
CircSupply abi.TokenAmount
BaseFee abi.TokenAmount
@@ -249,6 +250,7 @@ func (d *Driver) ExecuteMessage(bs blockstore.Blockstore, params ExecuteMessageP
vmOpts := &vm.VMOpts{
StateBase: params.Preroot,
Epoch: params.Epoch,
Timestamp: params.Timestamp,
Bstore: bs,
Syscalls: vm.Syscalls(ffiwrapper.ProofVerifier),
CircSupplyCalc: func(_ context.Context, _ abi.ChainEpoch, _ *state.StateTree) (abi.TokenAmount, error) {