neo-go/pkg/core/native
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
..
contract.go vm: hide GetContextScriptHash() method 2020-05-04 11:53:31 +03:00
interop.go native: save native contract state on deploy 2020-05-07 14:03:14 +03:00
native_gas.go core: fix bug with native contracts methods initialisation 2020-05-20 23:16:04 +03:00
native_neo.go core: fix bug with native contracts methods initialisation 2020-05-20 23:16:04 +03:00
native_nep5.go native: store NEO and GAS state in the storage 2020-04-27 12:30:39 +03:00
validators_count.go core/native: move ValidatorsCount processing into native NEO contract 2020-04-27 12:30:39 +03:00