Skip to content

Commit

Permalink
native: add NEP-27 to Notary's supported standards
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Jan 20, 2025
1 parent c800b2b commit 36575ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/core/native/notary.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ func copyNotaryCache(src, dst *NotaryCache) {

// newNotary returns Notary native contract.
func newNotary() *Notary {
n := &Notary{ContractMD: *interop.NewContractMD(nativenames.Notary, notaryContractID)}
n := &Notary{ContractMD: *interop.NewContractMD(nativenames.Notary, notaryContractID, func(m *manifest.Manifest, hf config.Hardfork) {
if hf.Cmp(config.HFEchidna) >= 0 {
m.SupportedStandards = append(m.SupportedStandards, manifest.NEP17Payable)
}
})}
defer n.BuildHFSpecificMD(n.ActiveIn())

desc := newDescriptor("onNEP17Payment", smartcontract.VoidType,
Expand Down

0 comments on commit 36575ce

Please sign in to comment.