rpcbinding: use typed return err value in etTypeConverter
Otherwise the resulting code can't be compiled. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
8beb9f23c3
commit
0f0f7b364f
3 changed files with 4 additions and 4 deletions
|
@ -412,7 +412,7 @@ func extendedTypeToGo(et binding.ExtendedType, named map[string]binding.Extended
|
|||
func etTypeConverter(et binding.ExtendedType, v string) string {
|
||||
switch et.Base {
|
||||
case smartcontract.AnyType:
|
||||
return v + ".Value(), nil"
|
||||
return v + ".Value(), error(nil)"
|
||||
case smartcontract.BoolType:
|
||||
return v + ".TryBool()"
|
||||
case smartcontract.IntegerType:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue