do fix price trick

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-08-18 11:26:06 +03:00
parent 9a91ec4c5b
commit 1231db87b5

View file

@ -55,6 +55,7 @@ func hardcodeNNS(cmd *cobra.Command, _ []string) error {
} }
w := io.NewBufBinWriter() w := io.NewBufBinWriter()
emit.AppCall(w.BinWriter, nnsCs.Hash, "setPrice", callflag.All, 1)
for name, sh := range hashes { for name, sh := range hashes {
h, err := util.Uint160DecodeStringLE(sh) h, err := util.Uint160DecodeStringLE(sh)
if err != nil { if err != nil {
@ -73,6 +74,7 @@ func hardcodeNNS(cmd *cobra.Command, _ []string) error {
// name, int64(nns.TXT), h.StringLE()) // name, int64(nns.TXT), h.StringLE())
//c.Command.Printf("NNS: Set %s -> %s\n", name, h.StringLE()) //c.Command.Printf("NNS: Set %s -> %s\n", name, h.StringLE())
} }
emit.AppCall(w.BinWriter, nnsCs.Hash, "setPrice", callflag.All, 10_0000_0000)
if w.Err != nil { if w.Err != nil {
panic(w.Err) panic(w.Err)
} }