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)
sh = pk.GetScriptHash()
}
txOuts = []transaction.Output{transaction.Output{
txOuts = []transaction.Output{{
AssetID: core.UtilityTokenID(),
Amount: netFee,
ScriptHash: sh,

View file

@ -26,7 +26,7 @@ type (
// invokefunction RPC method.
FuncParam struct {
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) {
var (
resultRawValue json.RawMessage
resultErr error
resultErr error
)
switch p.Type {
case BoolType, IntegerType, StringType, Hash256Type, Hash160Type:
@ -369,4 +369,4 @@ func NewParameterFromString(in string) (*Parameter, error) {
return nil, err
}
return res, nil
}
}