update dependency issues
@@ -108,15 +108,8 @@ func addAccountContractWithArgs(
}
}`
- cadenceName, err := cadence.String(contract.Name)
- if err != nil {
- return nil, err
- }
-
- cadenceCode, err := cadence.String(contract.SourceHex())
- if err != nil {
- return nil, err
- }
+ cadenceName := cadence.String(contract.Name)
+ cadenceCode := cadence.String(contract.SourceHex())
tx := flow.NewTransaction().
AddRawArgument(jsoncdc.MustEncode(cadenceName)).
@@ -139,7 +132,7 @@ func addAccountContractWithArgs(
tx.SetGasLimit(maxGasLimit)
t := &Transaction{tx: tx}
- err = t.SetSigner(signer)
+ err := t.SetSigner(signer)
if err != nil {
return nil, err
}
