native: implement HF-based update
A part of #3213. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
83fdcc8568
commit
d62fad1268
19 changed files with 416 additions and 105 deletions
|
@ -46,7 +46,6 @@ var (
|
|||
|
||||
func newStd() *Std {
|
||||
s := &Std{ContractMD: *interop.NewContractMD(nativenames.StdLib, stdContractID)}
|
||||
defer s.UpdateHash()
|
||||
|
||||
desc := newDescriptor("serialize", smartcontract.ByteArrayType,
|
||||
manifest.NewParameter("item", smartcontract.AnyType))
|
||||
|
@ -439,7 +438,7 @@ func (s *Std) Metadata() *interop.ContractMD {
|
|||
}
|
||||
|
||||
// Initialize implements the Contract interface.
|
||||
func (s *Std) Initialize(ic *interop.Context) error {
|
||||
func (s *Std) Initialize(ic *interop.Context, hf *config.Hardfork) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue