neoneo-go/pkg
Anna Shaleva c7a040ff81 core: fix bug with native contracts methods initialisation
`NewNEO()` and `NewGAS()` methods are trying to initialise
both `onPersist` and `incBalance` methods of NEO and GAS AFTER
nep5TokenNative is set to the VALUE of created nep5 token.
In this situation an attemmpt to call the corresponding native contracts
methods (e.g. transfer native GAS) leads to contract invocation failure,
as far as `nep5TokenNative.incBalance` method is nil.

Fixed this by initializing both `onPersist` and `incBalance` methods
before getting the value of nep5 contract.
2020-05-20 23:16:04 +03:00
..
compiler compiler: support var-declaration of byte slices 2020-05-20 17:45:56 +03:00
config transaction: drop Enrollment and State types 2020-04-27 16:06:58 +03:00
consensus core: fix bug in consensus 2020-05-20 23:16:04 +03:00
core core: fix bug with native contracts methods initialisation 2020-05-20 23:16:04 +03:00
crypto vm: move RET and SYSCALL opcodes 2020-05-07 13:23:05 +03:00
encoding *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
internal vm: move RET and SYSCALL opcodes 2020-05-07 13:23:05 +03:00
interop vm: remove crypto-related opcodes 2020-04-29 19:16:38 +03:00
io *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
network *: drop miner transaction 2020-04-27 17:57:37 +03:00
rpc rpc: update testchain 2020-05-20 17:45:56 +03:00
smartcontract rpc, smartcontract: move contract metadata to smartcontract package 2020-05-04 08:37:39 +03:00
util util: implement Serializable interface over Uint160 2020-05-04 11:49:14 +03:00
vm vm: implement MEMCPY opcode 2020-05-20 17:45:56 +03:00
wallet vm: move RET and SYSCALL opcodes 2020-05-07 13:23:05 +03:00