mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-06 19:55:10 +00:00
stackitem: change Bool() to TryBool(), prepare for its failures
This commit is contained in:
parent
790693fc6d
commit
a7670303e8
7 changed files with 65 additions and 45 deletions
|
@ -54,8 +54,8 @@ func (c *exceptionHandlingContext) Dup() stackitem.Item {
|
|||
return c
|
||||
}
|
||||
|
||||
// Bool implements stackitem.Item interface.
|
||||
func (c *exceptionHandlingContext) Bool() bool {
|
||||
// TryBool implements stackitem.Item interface.
|
||||
func (c *exceptionHandlingContext) TryBool() (bool, error) {
|
||||
panic("can't convert exceptionHandlingContext to Bool")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue