From b19b7b9d8c8e3e613a519cfb7f3371463efff1de Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Sun, 22 May 2022 17:48:40 +0300 Subject: [PATCH 1/7] fix indexer --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 4047a64b30a..76daf90cdc3 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/ElrondNetwork/arwen-wasm-vm/v1_4 v1.4.34-rc9 github.com/ElrondNetwork/concurrent-map v0.1.3 github.com/ElrondNetwork/covalent-indexer-go v1.0.6 - github.com/ElrondNetwork/elastic-indexer-go v1.2.25 + github.com/ElrondNetwork/elastic-indexer-go v1.2.26-0.20220522144327-90c1c1e48af7 github.com/ElrondNetwork/elrond-go-core v1.1.15 github.com/ElrondNetwork/elrond-go-crypto v1.0.1 github.com/ElrondNetwork/elrond-go-logger v1.0.7 diff --git a/go.sum b/go.sum index a77de3020ff..4dfb06a5707 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/ElrondNetwork/concurrent-map v0.1.3 h1:j2LtPrNJuerannC1cQDE79STvi/P04 github.com/ElrondNetwork/concurrent-map v0.1.3/go.mod h1:3XwSwn4JHI0lrKxWLZvtp53Emr8BXYTmNQGwcukHJEE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6 h1:+LNKItUc+Pb7WuTbil3VuiLMmdQ1AY7lBJM476PtVNE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6/go.mod h1:j3h2g96vqhJAuj3aEX2PWhomae2/o7YfXGEfweNXEeQ= -github.com/ElrondNetwork/elastic-indexer-go v1.2.25 h1:21ala1EQTu/30umkJxLTgIWikA17Iw8bP61EqK4poMo= -github.com/ElrondNetwork/elastic-indexer-go v1.2.25/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= +github.com/ElrondNetwork/elastic-indexer-go v1.2.26-0.20220522144327-90c1c1e48af7 h1:4P45LrRzQ4UGuh3s28+14kggUqopnrUlG0m14CQuTac= +github.com/ElrondNetwork/elastic-indexer-go v1.2.26-0.20220522144327-90c1c1e48af7/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= github.com/ElrondNetwork/elrond-go-core v1.0.0/go.mod h1:FQMem7fFF4+8pQ6lVsBZq6yO+smD0nV23P4bJpmPjTo= github.com/ElrondNetwork/elrond-go-core v1.1.6/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= github.com/ElrondNetwork/elrond-go-core v1.1.7/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= From abfaafb80d8c7ec9b5eb299074730b543616e00d Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Mon, 23 May 2022 14:20:27 +0300 Subject: [PATCH 2/7] proper release --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 76daf90cdc3..ffbc6528526 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/ElrondNetwork/arwen-wasm-vm/v1_4 v1.4.34-rc9 github.com/ElrondNetwork/concurrent-map v0.1.3 github.com/ElrondNetwork/covalent-indexer-go v1.0.6 - github.com/ElrondNetwork/elastic-indexer-go v1.2.26-0.20220522144327-90c1c1e48af7 + github.com/ElrondNetwork/elastic-indexer-go v1.2.26 github.com/ElrondNetwork/elrond-go-core v1.1.15 github.com/ElrondNetwork/elrond-go-crypto v1.0.1 github.com/ElrondNetwork/elrond-go-logger v1.0.7 diff --git a/go.sum b/go.sum index 4dfb06a5707..e763b6aff24 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/ElrondNetwork/concurrent-map v0.1.3 h1:j2LtPrNJuerannC1cQDE79STvi/P04 github.com/ElrondNetwork/concurrent-map v0.1.3/go.mod h1:3XwSwn4JHI0lrKxWLZvtp53Emr8BXYTmNQGwcukHJEE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6 h1:+LNKItUc+Pb7WuTbil3VuiLMmdQ1AY7lBJM476PtVNE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6/go.mod h1:j3h2g96vqhJAuj3aEX2PWhomae2/o7YfXGEfweNXEeQ= -github.com/ElrondNetwork/elastic-indexer-go v1.2.26-0.20220522144327-90c1c1e48af7 h1:4P45LrRzQ4UGuh3s28+14kggUqopnrUlG0m14CQuTac= -github.com/ElrondNetwork/elastic-indexer-go v1.2.26-0.20220522144327-90c1c1e48af7/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= +github.com/ElrondNetwork/elastic-indexer-go v1.2.26 h1:uJT5XRnROjFFYP0lc1JRdI8GAoJMZZx7sUcot6vuwl0= +github.com/ElrondNetwork/elastic-indexer-go v1.2.26/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= github.com/ElrondNetwork/elrond-go-core v1.0.0/go.mod h1:FQMem7fFF4+8pQ6lVsBZq6yO+smD0nV23P4bJpmPjTo= github.com/ElrondNetwork/elrond-go-core v1.1.6/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= github.com/ElrondNetwork/elrond-go-core v1.1.7/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= From b7b798bf70a4b0eb00400f7e22a0713631a154ea Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Wed, 25 May 2022 15:49:41 +0300 Subject: [PATCH 3/7] indexer v1.2.27 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ffbc6528526..65bdaec40f3 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/ElrondNetwork/arwen-wasm-vm/v1_4 v1.4.34-rc9 github.com/ElrondNetwork/concurrent-map v0.1.3 github.com/ElrondNetwork/covalent-indexer-go v1.0.6 - github.com/ElrondNetwork/elastic-indexer-go v1.2.26 + github.com/ElrondNetwork/elastic-indexer-go v1.2.27 github.com/ElrondNetwork/elrond-go-core v1.1.15 github.com/ElrondNetwork/elrond-go-crypto v1.0.1 github.com/ElrondNetwork/elrond-go-logger v1.0.7 diff --git a/go.sum b/go.sum index e763b6aff24..914311658d7 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/ElrondNetwork/concurrent-map v0.1.3 h1:j2LtPrNJuerannC1cQDE79STvi/P04 github.com/ElrondNetwork/concurrent-map v0.1.3/go.mod h1:3XwSwn4JHI0lrKxWLZvtp53Emr8BXYTmNQGwcukHJEE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6 h1:+LNKItUc+Pb7WuTbil3VuiLMmdQ1AY7lBJM476PtVNE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6/go.mod h1:j3h2g96vqhJAuj3aEX2PWhomae2/o7YfXGEfweNXEeQ= -github.com/ElrondNetwork/elastic-indexer-go v1.2.26 h1:uJT5XRnROjFFYP0lc1JRdI8GAoJMZZx7sUcot6vuwl0= -github.com/ElrondNetwork/elastic-indexer-go v1.2.26/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= +github.com/ElrondNetwork/elastic-indexer-go v1.2.27 h1:be1iG3xz+as7BNytOmY7HiJY3eixVXLpLbXg9IGctTo= +github.com/ElrondNetwork/elastic-indexer-go v1.2.27/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= github.com/ElrondNetwork/elrond-go-core v1.0.0/go.mod h1:FQMem7fFF4+8pQ6lVsBZq6yO+smD0nV23P4bJpmPjTo= github.com/ElrondNetwork/elrond-go-core v1.1.6/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= github.com/ElrondNetwork/elrond-go-core v1.1.7/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= From 70086e930700af9e5ab06ca5b3dc83cf493bdfc1 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Fri, 27 May 2022 16:39:51 +0300 Subject: [PATCH 4/7] extend system sc esdt and new indexer --- go.mod | 2 +- go.sum | 4 ++-- vm/systemSmartContracts/esdt.go | 27 +++++++++++++++++++-------- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index 65bdaec40f3..fb1899709ba 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/ElrondNetwork/arwen-wasm-vm/v1_4 v1.4.34-rc9 github.com/ElrondNetwork/concurrent-map v0.1.3 github.com/ElrondNetwork/covalent-indexer-go v1.0.6 - github.com/ElrondNetwork/elastic-indexer-go v1.2.27 + github.com/ElrondNetwork/elastic-indexer-go v1.2.28-0.20220527133650-affb85f1348f github.com/ElrondNetwork/elrond-go-core v1.1.15 github.com/ElrondNetwork/elrond-go-crypto v1.0.1 github.com/ElrondNetwork/elrond-go-logger v1.0.7 diff --git a/go.sum b/go.sum index 914311658d7..74e1a8651e6 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/ElrondNetwork/concurrent-map v0.1.3 h1:j2LtPrNJuerannC1cQDE79STvi/P04 github.com/ElrondNetwork/concurrent-map v0.1.3/go.mod h1:3XwSwn4JHI0lrKxWLZvtp53Emr8BXYTmNQGwcukHJEE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6 h1:+LNKItUc+Pb7WuTbil3VuiLMmdQ1AY7lBJM476PtVNE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6/go.mod h1:j3h2g96vqhJAuj3aEX2PWhomae2/o7YfXGEfweNXEeQ= -github.com/ElrondNetwork/elastic-indexer-go v1.2.27 h1:be1iG3xz+as7BNytOmY7HiJY3eixVXLpLbXg9IGctTo= -github.com/ElrondNetwork/elastic-indexer-go v1.2.27/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= +github.com/ElrondNetwork/elastic-indexer-go v1.2.28-0.20220527133650-affb85f1348f h1:lTZGEKM71HEoUMsp0W77VnYY5QEp21Qu+MFr6FrhaDA= +github.com/ElrondNetwork/elastic-indexer-go v1.2.28-0.20220527133650-affb85f1348f/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= github.com/ElrondNetwork/elrond-go-core v1.0.0/go.mod h1:FQMem7fFF4+8pQ6lVsBZq6yO+smD0nV23P4bJpmPjTo= github.com/ElrondNetwork/elrond-go-core v1.1.6/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= github.com/ElrondNetwork/elrond-go-core v1.1.7/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= diff --git a/vm/systemSmartContracts/esdt.go b/vm/systemSmartContracts/esdt.go index 06aa2a9e4e2..674972c96b8 100644 --- a/vm/systemSmartContracts/esdt.go +++ b/vm/systemSmartContracts/esdt.go @@ -40,6 +40,7 @@ const canAddSpecialRoles = "canAddSpecialRoles" const canTransferNFTCreateRole = "canTransferNFTCreateRole" const upgradable = "canUpgrade" const canCreateMultiShard = "canCreateMultiShard" +const upgradeProperties = "upgradeProperties" const conversionBase = 10 const metaESDT = "MetaESDT" @@ -333,7 +334,7 @@ func (e *esdt) issue(args *vmcommon.ContractCallInput) vmcommon.ReturnCode { logEntry := &vmcommon.LogEntry{ Identifier: []byte(args.Function), Address: args.CallerAddr, - Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], []byte(core.FungibleESDT)}, + Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], []byte(core.FungibleESDT), big.NewInt(int64(numOfDecimals)).Bytes()}, } e.eei.AddLogEntry(logEntry) @@ -367,7 +368,7 @@ func (e *esdt) registerNonFungible(args *vmcommon.ContractCallInput) vmcommon.Re logEntry := &vmcommon.LogEntry{ Identifier: []byte(args.Function), Address: args.CallerAddr, - Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], []byte(core.NonFungibleESDT)}, + Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], []byte(core.NonFungibleESDT), big.NewInt(0).Bytes()}, } e.eei.AddLogEntry(logEntry) @@ -402,7 +403,7 @@ func (e *esdt) registerSemiFungible(args *vmcommon.ContractCallInput) vmcommon.R logEntry := &vmcommon.LogEntry{ Identifier: []byte(args.Function), Address: args.CallerAddr, - Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], []byte(core.SemiFungibleESDT)}, + Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], []byte(core.SemiFungibleESDT), big.NewInt(0).Bytes()}, } e.eei.AddLogEntry(logEntry) @@ -531,7 +532,7 @@ func (e *esdt) registerAndSetRoles(args *vmcommon.ContractCallInput) vmcommon.Re logEntry := &vmcommon.LogEntry{ Identifier: []byte(args.Function), Address: args.CallerAddr, - Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], tokenType}, + Topics: [][]byte{tokenIdentifier, args.Arguments[0], args.Arguments[1], tokenType, big.NewInt(int64(numOfDecimals)).Bytes()}, } e.eei.Finish(tokenIdentifier) e.eei.AddLogEntry(logEntry) @@ -607,7 +608,7 @@ func (e *esdt) changeSFTToMetaESDT(args *vmcommon.ContractCallInput) vmcommon.Re logEntry := &vmcommon.LogEntry{ Identifier: []byte(args.Function), Address: args.CallerAddr, - Topics: [][]byte{args.Arguments[0], token.TokenName, token.TickerName, []byte(metaESDT)}, + Topics: [][]byte{args.Arguments[0], token.TokenName, token.TickerName, []byte(metaESDT), args.Arguments[1]}, } e.eei.AddLogEntry(logEntry) @@ -646,7 +647,7 @@ func (e *esdt) createNewToken( Upgradable: true, CanAddSpecialRoles: true, } - err = e.upgradeProperties(newESDTToken, properties, true) + err = e.upgradeProperties(newESDTToken, properties, true, owner) if err != nil { return nil, nil, err } @@ -710,7 +711,7 @@ func (e *esdt) createNewTokenIdentifier(caller []byte, ticker []byte) ([]byte, e return nil, vm.ErrCouldNotCreateNewTokenIdentifier } -func (e *esdt) upgradeProperties(token *ESDTDataV2, args [][]byte, isCreate bool) error { +func (e *esdt) upgradeProperties(token *ESDTDataV2, args [][]byte, isCreate bool, callerAddr []byte) error { mintBurnable := true if string(token.TokenType) != core.FungibleESDT { mintBurnable = false @@ -770,6 +771,16 @@ func (e *esdt) upgradeProperties(token *ESDTDataV2, args [][]byte, isCreate bool } } + topics := make([][]byte, 0) + topics = append(topics, token.TickerName, big.NewInt(0).Bytes()) + topics = append(topics, args...) + logEntry := &vmcommon.LogEntry{ + Identifier: []byte(upgradeProperties), + Address: callerAddr, + Topics: topics, + } + e.eei.AddLogEntry(logEntry) + return nil } @@ -1317,7 +1328,7 @@ func (e *esdt) controlChanges(args *vmcommon.ContractCallInput) vmcommon.ReturnC return vmcommon.UserError } - err := e.upgradeProperties(token, args.Arguments[1:], false) + err := e.upgradeProperties(token, args.Arguments[1:], false, args.CallerAddr) if err != nil { e.eei.AddReturnMessage(err.Error()) return vmcommon.UserError From 4c8b2e410edb2fe96108992ae3403d816e19e357 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Fri, 27 May 2022 16:55:50 +0300 Subject: [PATCH 5/7] token identifier --- vm/systemSmartContracts/esdt.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vm/systemSmartContracts/esdt.go b/vm/systemSmartContracts/esdt.go index 674972c96b8..14fe50d3f5d 100644 --- a/vm/systemSmartContracts/esdt.go +++ b/vm/systemSmartContracts/esdt.go @@ -647,7 +647,7 @@ func (e *esdt) createNewToken( Upgradable: true, CanAddSpecialRoles: true, } - err = e.upgradeProperties(newESDTToken, properties, true, owner) + err = e.upgradeProperties(tokenIdentifier, newESDTToken, properties, true, owner) if err != nil { return nil, nil, err } @@ -711,7 +711,7 @@ func (e *esdt) createNewTokenIdentifier(caller []byte, ticker []byte) ([]byte, e return nil, vm.ErrCouldNotCreateNewTokenIdentifier } -func (e *esdt) upgradeProperties(token *ESDTDataV2, args [][]byte, isCreate bool, callerAddr []byte) error { +func (e *esdt) upgradeProperties(tokenIdentifier []byte, token *ESDTDataV2, args [][]byte, isCreate bool, callerAddr []byte) error { mintBurnable := true if string(token.TokenType) != core.FungibleESDT { mintBurnable = false @@ -772,7 +772,7 @@ func (e *esdt) upgradeProperties(token *ESDTDataV2, args [][]byte, isCreate bool } topics := make([][]byte, 0) - topics = append(topics, token.TickerName, big.NewInt(0).Bytes()) + topics = append(topics, tokenIdentifier, big.NewInt(0).Bytes()) topics = append(topics, args...) logEntry := &vmcommon.LogEntry{ Identifier: []byte(upgradeProperties), @@ -1328,7 +1328,7 @@ func (e *esdt) controlChanges(args *vmcommon.ContractCallInput) vmcommon.ReturnC return vmcommon.UserError } - err := e.upgradeProperties(token, args.Arguments[1:], false, args.CallerAddr) + err := e.upgradeProperties(args.Arguments[0], token, args.Arguments[1:], false, args.CallerAddr) if err != nil { e.eei.AddReturnMessage(err.Error()) return vmcommon.UserError From 41345682bd6bb9fc60398e57ca90e734290ce01b Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Sat, 28 May 2022 12:59:05 +0300 Subject: [PATCH 6/7] indexer v1.2.28 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index c29a6b9194a..694ae82941a 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/ElrondNetwork/arwen-wasm-vm/v1_4 v1.4.34-rc9 github.com/ElrondNetwork/concurrent-map v0.1.3 github.com/ElrondNetwork/covalent-indexer-go v1.0.6 - github.com/ElrondNetwork/elastic-indexer-go v1.2.28-0.20220527133650-affb85f1348f + github.com/ElrondNetwork/elastic-indexer-go v1.2.28 github.com/ElrondNetwork/elrond-go-core v1.1.15 github.com/ElrondNetwork/elrond-go-crypto v1.0.1 github.com/ElrondNetwork/elrond-go-logger v1.0.7 diff --git a/go.sum b/go.sum index c67b11c4d2c..3191d4c47f6 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,8 @@ github.com/ElrondNetwork/concurrent-map v0.1.3 h1:j2LtPrNJuerannC1cQDE79STvi/P04 github.com/ElrondNetwork/concurrent-map v0.1.3/go.mod h1:3XwSwn4JHI0lrKxWLZvtp53Emr8BXYTmNQGwcukHJEE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6 h1:+LNKItUc+Pb7WuTbil3VuiLMmdQ1AY7lBJM476PtVNE= github.com/ElrondNetwork/covalent-indexer-go v1.0.6/go.mod h1:j3h2g96vqhJAuj3aEX2PWhomae2/o7YfXGEfweNXEeQ= -github.com/ElrondNetwork/elastic-indexer-go v1.2.28-0.20220527133650-affb85f1348f h1:lTZGEKM71HEoUMsp0W77VnYY5QEp21Qu+MFr6FrhaDA= -github.com/ElrondNetwork/elastic-indexer-go v1.2.28-0.20220527133650-affb85f1348f/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= +github.com/ElrondNetwork/elastic-indexer-go v1.2.28 h1:mXtyKKKFDIajaivMDBvaryi39KlstqEskXjPIzdJ3yA= +github.com/ElrondNetwork/elastic-indexer-go v1.2.28/go.mod h1:XkrkGcomheEZyMC1/OoANQ9KV0OCZF6+UP8lSPRrE9I= github.com/ElrondNetwork/elrond-go-core v1.0.0/go.mod h1:FQMem7fFF4+8pQ6lVsBZq6yO+smD0nV23P4bJpmPjTo= github.com/ElrondNetwork/elrond-go-core v1.1.6/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= github.com/ElrondNetwork/elrond-go-core v1.1.7/go.mod h1:O9FkkTT2H9kxCzfn40TbhoCDXzGmUrRVusMomhK/Y3g= From f33b0b2f77b8423118104eb85d06fe49a9237f84 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Sat, 28 May 2022 13:08:18 +0300 Subject: [PATCH 7/7] small fix --- vm/systemSmartContracts/esdt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm/systemSmartContracts/esdt.go b/vm/systemSmartContracts/esdt.go index 14fe50d3f5d..421ce2ab05e 100644 --- a/vm/systemSmartContracts/esdt.go +++ b/vm/systemSmartContracts/esdt.go @@ -772,7 +772,8 @@ func (e *esdt) upgradeProperties(tokenIdentifier []byte, token *ESDTDataV2, args } topics := make([][]byte, 0) - topics = append(topics, tokenIdentifier, big.NewInt(0).Bytes()) + nonce := big.NewInt(0) + topics = append(topics, tokenIdentifier, nonce.Bytes()) topics = append(topics, args...) logEntry := &vmcommon.LogEntry{ Identifier: []byte(upgradeProperties),