We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In 7d46404 trigger constants were defined with the type Type, which is a byte alias. However makeStackItem() can't explicitly convert Type as uint8
Type
byte
makeStackItem()
uint8
func makeStackItem(v interface{}) StackItem { switch val := v.(type) { case int: case int64: case uint8: case uint16: case uint32: case uint64: case []byte: case string: case bool: case []StackItem: case *big.Int: case StackItem: case []int: default: } }
Therefore code snippets like this lead to an error.
v.Estack().PushVal(trigger.Application)
Is it correct behaviour?
The text was updated successfully, but these errors were encountered:
Kinda at the moment, but it's a useful use case and it's so easy to fix that we should do it.
Sorry, something went wrong.
fyrchik
Successfully merging a pull request may close this issue.
In 7d46404 trigger constants were defined with the type
Type
, which is abyte
alias. HowevermakeStackItem()
can't explicitly convertType
asuint8
Therefore code snippets like this lead to an error.
Is it correct behaviour?
The text was updated successfully, but these errors were encountered: