forked from TrueCloudLab/neoneo-go
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)
|
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,
|
||||||
|
|
|
@ -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"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue