Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Semenyuk <alexsemenyuk88@gmail.com>
  • Loading branch information
alex-semenyuk committed Mar 20, 2024
1 parent 141de00 commit 53aee26
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/tezos/deploy_contract_prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ func (c *tezosConnector) DeployContractPrepare(ctx context.Context, req *ffcapi.
return nil, ffcapi.ErrorReasonInvalidInputs, i18n.NewError(ctx, "Missing contract", req.Contract)
}

sc, err := asScript(req.Contract.String())
if err != nil {
return nil, ffcapi.ErrorReasonInvalidInputs, err
}
sc := asScript(req.Contract.String())
orig := &codec.Origination{
Script: sc,
}
Expand Down Expand Up @@ -56,8 +53,8 @@ func (c *tezosConnector) DeployContractPrepare(ctx context.Context, req *ffcapi.
}, "", nil
}

func asScript(s string) (micheline.Script, error) {
func asScript(s string) micheline.Script {
var sc micheline.Script
_ = json.Unmarshal([]byte(s), &sc)
return sc, nil
return sc
}

0 comments on commit 53aee26

Please sign in to comment.