[#1115] *: link TODOs to corresponding issues

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-02-07 16:34:02 +03:00 committed by Alex Vanin
parent 692790a899
commit 050a4bb2b0
51 changed files with 49 additions and 97 deletions

View file

@ -377,11 +377,11 @@ func toStackParameter(value interface{}) (sc.Parameter, error) {
Value: value,
}
// todo: add more types
// TODO: #1141 add more types
switch v := value.(type) {
case []byte:
result.Type = sc.ByteArrayType
case int64: // TODO: add other numerical types
case int64:
result.Type = sc.IntegerType
case [][]byte:
arr := make([]sc.Parameter, 0, len(v))
@ -412,7 +412,7 @@ func toStackParameter(value interface{}) (sc.Parameter, error) {
return toStackParameter(arr)
case bool:
// FIXME: there are some problems with BoolType in neo-go,
// FIXME: #1141 there are some problems with BoolType in neo-go,
// so we use compatible type
result.Type = sc.IntegerType