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

This commit is contained in:
Jon 2024-04-18 19:06:41 -07:00 committed by GitHub
parent 5f7aaaa8f9
commit 031802eb08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {