mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
smartcontract: fix PropertyState definitions
Wrong bits were used to represent flags which is important for contracts created via interop. Fixes contracts failing to store things: WARN[16278] contract invocation failed block=3773025 err="error encountered at instruction 3435 (SYSCALL): failed to invoke syscall: contract c9d870d7857e956d82290d5df19de3133c107815 can't have storage" tx=fa695eea240b7b4dbb6f42ea6335447a764d8b629c40b7812ea3bca16b1f098d WARN[16278] contract invocation failed block=3773025 err="error encountered at instruction 1279 (SYSCALL): failed to invoke syscall: contract 97210e7c98582151ceb37f9748c9a1d27d9ae6fd can't have storage" tx=0144d84038149fa0cf1f7912f7d5854fa5f3670f5b4217789c1441f9fd52d27b
This commit is contained in:
parent
2e99d65554
commit
2611e9ab5c
1 changed files with 2 additions and 2 deletions
|
@ -23,10 +23,10 @@ type PropertyState byte
|
||||||
|
|
||||||
// List of supported properties.
|
// List of supported properties.
|
||||||
const (
|
const (
|
||||||
NoProperties = 0
|
HasStorage PropertyState = 1 << iota
|
||||||
HasStorage PropertyState = 1 << iota
|
|
||||||
HasDynamicInvoke
|
HasDynamicInvoke
|
||||||
IsPayable
|
IsPayable
|
||||||
|
NoProperties = 0
|
||||||
)
|
)
|
||||||
|
|
||||||
// Parameter represents a smart contract parameter.
|
// Parameter represents a smart contract parameter.
|
||||||
|
|
Loading…
Reference in a new issue