pkg: fix gofmt issues

This commit is contained in:
Roman Khimov 2020-03-03 17:22:15 +03:00
parent e41d434a49
commit f5a1b928ce
3 changed files with 4 additions and 4 deletions

View file

@ -446,7 +446,7 @@ func (s *service) getVerifiedTx(count int) []block.Transaction {
pk := s.dbft.Pub.(*publicKey) pk := s.dbft.Pub.(*publicKey)
sh = pk.GetScriptHash() sh = pk.GetScriptHash()
} }
txOuts = []transaction.Output{transaction.Output{ txOuts = []transaction.Output{{
AssetID: core.UtilityTokenID(), AssetID: core.UtilityTokenID(),
Amount: netFee, Amount: netFee,
ScriptHash: sh, ScriptHash: sh,

View file

@ -26,7 +26,7 @@ type (
// invokefunction RPC method. // invokefunction RPC method.
FuncParam struct { FuncParam struct {
Type smartcontract.ParamType `json:"type"` Type smartcontract.ParamType `json:"type"`
Value Param `json:"value"` Value Param `json:"value"`
} }
) )

View file

@ -60,7 +60,7 @@ type rawKeyValuePair struct {
func (p *Parameter) MarshalJSON() ([]byte, error) { func (p *Parameter) MarshalJSON() ([]byte, error) {
var ( var (
resultRawValue json.RawMessage resultRawValue json.RawMessage
resultErr error resultErr error
) )
switch p.Type { switch p.Type {
case BoolType, IntegerType, StringType, Hash256Type, Hash160Type: case BoolType, IntegerType, StringType, Hash256Type, Hash160Type:
@ -369,4 +369,4 @@ func NewParameterFromString(in string) (*Parameter, error) {
return nil, err return nil, err
} }
return res, nil return res, nil
} }