Skip to content

Commit

Permalink
remove unnecessary use of NewInternalEVMContractValue
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Aug 27, 2024
1 parent 98aa5ab commit cd940c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions languageserver/integration/stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ import (
evmstdlib "github.com/onflow/flow-go/fvm/evm/stdlib"
)

// FVMtandardLibraryValues returns the standard library values which are provided by the FVM
// FVMStandardLibraryValues returns the standard library values which are provided by the FVM
// these are not part of the Cadence standard library
func FVMStandardLibraryValues() []stdlib.StandardLibraryValue {
return []stdlib.StandardLibraryValue{
// InternalEVM contract
{
Name: evmstdlib.InternalEVMContractName,
Type: evmstdlib.InternalEVMContractType,
Value: evmstdlib.NewInternalEVMContractValue(nil, nil, common.AddressLocation{}),
Kind: common.DeclarationKindContract,
Name: evmstdlib.InternalEVMContractName,
Type: evmstdlib.InternalEVMContractType,
Kind: common.DeclarationKindContract,
// Not needed for checking
Value: nil,
},
}
}

0 comments on commit cd940c0

Please sign in to comment.