Skip to content

Commit

Permalink
chore: ffi: the latest fvm release
Browse files Browse the repository at this point in the history
  • Loading branch information
jennijuju committed Mar 27, 2022
1 parent c070f25 commit 7a5fd4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions chain/vm/fvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,17 @@ func NewFVM(ctx context.Context, opts *VMOpts) (*FVM, error) {
}
}

fvm, err := ffi.CreateFVM(0,
&FvmExtern{Rand: opts.Rand, Blockstore: opts.Bstore, lbState: opts.LookbackState, base: opts.StateBase, epoch: opts.Epoch},
opts.Epoch, opts.BaseFee, circToReport, opts.NetworkVersion, opts.StateBase,
)
fvmOpts := ffi.FVMOpts{
FVMVersion: 0,
Externs: &FvmExtern{Rand: opts.Rand, Blockstore: opts.Bstore, lbState: opts.LookbackState, base: opts.StateBase, epoch: opts.Epoch},
Epoch: opts.Epoch,
BaseFee: opts.BaseFee,
BaseCircSupply: circToReport,
NetworkVersion: opts.NetworkVersion,
StateBase: opts.StateBase,
}

fvm, err := ffi.CreateFVM(&fvmOpts)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7a5fd4e

Please sign in to comment.