mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
pkg: fix gofmt issues
This commit is contained in:
parent
e41d434a49
commit
f5a1b928ce
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -26,7 +26,7 @@ type (
|
|||
// invokefunction RPC method.
|
||||
FuncParam struct {
|
||||
Type smartcontract.ParamType `json:"type"`
|
||||
Value Param `json:"value"`
|
||||
Value Param `json:"value"`
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue