Skip to content

Commit 89a8735

Browse files
committed
add timestamp to fvm options
1 parent 429aa4b commit 89a8735

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fvm.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type FVMOpts struct {
3636
Externs cgo.Externs
3737

3838
Epoch abi.ChainEpoch
39+
Timestamp uint64
3940
BaseFee abi.TokenAmount
4041
BaseCircSupply abi.TokenAmount
4142
NetworkVersion network.Version
@@ -63,6 +64,7 @@ func CreateFVM(opts *FVMOpts) (*FVM, error) {
6364
if !opts.Debug {
6465
executor, err = cgo.CreateFvmMachine(cgo.FvmRegisteredVersion(opts.FVMVersion),
6566
uint64(opts.Epoch),
67+
opts.Timestamp,
6668
baseFeeHi,
6769
baseFeeLo,
6870
baseCircSupplyHi,
@@ -76,6 +78,7 @@ func CreateFVM(opts *FVMOpts) (*FVM, error) {
7678
} else {
7779
executor, err = cgo.CreateFvmDebugMachine(cgo.FvmRegisteredVersion(opts.FVMVersion),
7880
uint64(opts.Epoch),
81+
opts.Timestamp,
7982
baseFeeHi,
8083
baseFeeLo,
8184
baseCircSupplyHi,

0 commit comments

Comments
 (0)