neoneo-go/pkg/core
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
..
block core: add txes duplication check on block.DecodeBinary 2020-04-27 18:00:01 +03:00
blockchainer core: switch to the new voting system (via native NEO contract) 2020-04-27 16:06:50 +03:00
dao core: switch to the new voting system (via native NEO contract) 2020-04-27 16:06:50 +03:00
interop core: implement System.Contract.Call interop 2020-05-07 14:39:06 +03:00
mempool *: drop miner transaction 2020-04-27 17:57:37 +03:00
native core: fix bug with native contracts methods initialisation 2020-05-20 23:16:04 +03:00
state util: implement Serializable interface over Uint160 2020-05-04 11:49:14 +03:00
storage core/native: move NextValidators storage to NEO contract 2020-04-27 12:30:39 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction core: add cosigners field to transaction 2020-05-04 11:53:31 +03:00
blockchain.go core: fix bug in nep5 notifications handling 2020-05-20 23:16:04 +03:00
blockchain_test.go *: drop miner transaction 2020-04-27 17:57:37 +03:00
gas_price.go vm,compiler: replace APPCALL with System.Contract.Call 2020-05-07 14:52:03 +03:00
gas_price_test.go core: use opcodes instead of raw bytes in tests 2020-04-23 10:37:01 +03:00
header_hash_list.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
helper_test.go core: remove unused function from tests 2020-05-06 16:00:16 +03:00
interop_neo.go vm: hide GetContextScriptHash() method 2020-05-04 11:53:31 +03:00
interop_neo_test.go core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
interop_system.go core: implement System.Contract.Call interop 2020-05-07 14:39:06 +03:00
interops.go vm,compiler: replace APPCALL with System.Contract.Call 2020-05-07 14:52:03 +03:00
interops_test.go core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
native_contract_test.go core: implement System.Contract.Call interop 2020-05-07 14:39:06 +03:00
prometheus.go core: refactor out MemPool 2020-01-16 10:16:24 +03:00
spent_coin.go core: move (un)SpentCoin structs into the state package 2020-03-11 12:22:52 +03:00
util.go *: drop miner transaction 2020-04-27 17:57:37 +03:00
util_test.go vm: move RET and SYSCALL opcodes 2020-05-07 13:23:05 +03:00