@@ -512,7 +512,7 @@ func bootstrapLedger(
512
512
513
513
bootstrap := configureBootstrapProcedure (conf , flowAccountKey , conf .GenesisTokenSupply )
514
514
515
- err := vm .Run (ctx , bootstrap , ledger , programs . NewEmptyPrograms () )
515
+ err := vm .Run (ctx , bootstrap , ledger )
516
516
if err != nil {
517
517
return err
518
518
}
@@ -804,7 +804,6 @@ func (b *Blockchain) getAccountAtBlock(address flowgo.Address, blockHeight uint6
804
804
b .vmCtx ,
805
805
address ,
806
806
b .storage .LedgerViewByHeight (blockHeight ),
807
- programs .NewEmptyPrograms (),
808
807
)
809
808
810
809
if fvmerrors .IsAccountNotFoundError (err ) {
@@ -946,7 +945,7 @@ func (b *Blockchain) executeNextTransaction(ctx fvm.Context) (*types.Transaction
946
945
) (* fvm.TransactionProcedure , error ) {
947
946
tx := fvm .Transaction (txBody , txIndex )
948
947
949
- err := b .vm .Run (ctx , tx , ledgerView , programs . NewEmptyPrograms () )
948
+ err := b .vm .Run (ctx , tx , ledgerView )
950
949
if err != nil {
951
950
return nil , err
952
951
}
@@ -1023,7 +1022,6 @@ func (b *Blockchain) commitBlock() (*flowgo.Block, error) {
1023
1022
}
1024
1023
1025
1024
func (b * Blockchain ) GetAccountStorage (address sdk.Address ) (* AccountStorage , error ) {
1026
- program := programs .NewEmptyPrograms ()
1027
1025
view := b .pendingBlock .ledgerView .NewChild ()
1028
1026
1029
1027
stateParameters := state .DefaultParameters ().
@@ -1053,7 +1051,7 @@ func (b *Blockchain) GetAccountStorage(address sdk.Address) (*AccountStorage, er
1053
1051
return nil , err
1054
1052
}
1055
1053
1056
- account , err := b .vm .GetAccount (b .vmCtx , flowgo .BytesToAddress (address .Bytes ()), view , program )
1054
+ account , err := b .vm .GetAccount (b .vmCtx , flowgo .BytesToAddress (address .Bytes ()), view )
1057
1055
if err != nil {
1058
1056
return nil , err
1059
1057
}
@@ -1136,7 +1134,7 @@ func (b *Blockchain) ExecuteScriptAtBlock(script []byte, arguments [][]byte, blo
1136
1134
1137
1135
scriptProc := fvm .Script (script ).WithArguments (arguments ... )
1138
1136
1139
- err = b .vm .Run (blockContext , scriptProc , requestedLedgerView , programs . NewEmptyPrograms () )
1137
+ err = b .vm .Run (blockContext , scriptProc , requestedLedgerView )
1140
1138
if err != nil {
1141
1139
return nil , err
1142
1140
}
0 commit comments