@@ -112,6 +112,7 @@ var networkInfos = map[string]NetworkConfig{
112112 Reconciliation : & Reconciliation {
113113 Addr : "fetch1tynmzk68pq6kzawqffrqdhquq475gw9ccmlf9gk24mxjjy6ugl3q70aeyd" ,
114114 NewAdmin : getStringPtr ("fetch15p3rl5aavw9rtu86tna5lgxfkz67zzr6ed4yhw" ),
115+ NewLabel : getStringPtr ("reconciliation-contract" ),
115116 },
116117 FccCw20 : & FccCw20 {
117118 Addr : "fetch1vsarnyag5d2c72k86yh2aq4l5jxhwz8fms6yralxqggxzmmwnq4q0avxv7" ,
@@ -673,7 +674,7 @@ func ASIGenesisUpgradeReplaceBridgeAdmin(jsonData map[string]interface{}, networ
673674 tokenBridgeContractAddress := networkInfo .Contracts .TokenBridge .Addr
674675 tokenBridgeContract := getContractFromAddr (tokenBridgeContractAddress , jsonData )
675676
676- replaceContractAdmin (tokenBridgeContract , networkInfo .Contracts .TokenBridge .NewAdmin )
677+ replaceContractAdminAndLabel (tokenBridgeContract , networkInfo .Contracts .TokenBridge .NewAdmin , nil )
677678}
678679
679680func ASIGenesisUpgradeReplaceDenom (jsonData map [string ]interface {}, networkInfo NetworkConfig ) {
@@ -709,7 +710,7 @@ func ASIGenesisUpgradeReplaceAlmanacState(jsonData map[string]interface{}, netwo
709710 }
710711}
711712
712- func ASIGenesisUpgradeReplaceReconciliationState (jsonData map [string ]interface {}, networkConfig NetworkConfig , manifest * ASIUpgradeManifest ) {
713+ func ASIGenesisUpgradeReplaceReconciliationContractState (jsonData map [string ]interface {}, networkConfig NetworkConfig , manifest * ASIUpgradeManifest ) {
713714 if networkConfig .Contracts == nil || networkConfig .Contracts .Reconciliation == nil || networkConfig .Contracts .Reconciliation .Addr == "" || len (manifest .Reconciliation .Transfers .Transfers ) < 1 {
714715 return
715716 }
@@ -719,7 +720,7 @@ func ASIGenesisUpgradeReplaceReconciliationState(jsonData map[string]interface{}
719720
720721 manifest .Reconciliation .ContractState = NewASIUpgradeReconciliationContractState ()
721722
722- replaceContractAdmin (reconciliationContract , networkConfig .Contracts .Reconciliation .NewAdmin )
723+ replaceContractAdminAndLabel (reconciliationContract , networkConfig .Contracts .Reconciliation .NewAdmin , networkConfig . Contracts . Reconciliation . NewLabel )
723724
724725 for _ , transfer := range manifest .Reconciliation .Transfers .Transfers {
725726 addReconciliationContractStateBalancesRecord (& reconciliationContractState , transfer .EthAddr , transfer .Amount , & networkConfig , manifest )
@@ -934,7 +935,7 @@ func ASIGenesisUpgradeWithdrawReconciliationBalances(jsonData map[string]interfa
934935 manifest .Reconciliation .Transfers .AggregatedBalancesAmount = manifest .Reconciliation .Transfers .AggregatedBalancesAmount .Add (accBalanceCoins ... )
935936 }
936937
937- ASIGenesisUpgradeReplaceReconciliationState (jsonData , networkConfig , manifest )
938+ ASIGenesisUpgradeReplaceReconciliationContractState (jsonData , networkConfig , manifest )
938939}
939940
940941func ASIGenesisUpgradeASISupply (jsonData map [string ]interface {}, networkInfo NetworkConfig , manifest * ASIUpgradeManifest ) {
@@ -1014,13 +1015,14 @@ func convertAddressToASI(addr string, addressPrefix string) (string, error) {
10141015 return newAddress , nil
10151016}
10161017
1017- func replaceContractAdmin (genesisContractStruct map [string ]interface {}, newAdmin * string ) {
1018- if newAdmin == nil {
1019- return
1020- }
1021-
1018+ func replaceContractAdminAndLabel (genesisContractStruct map [string ]interface {}, newAdmin * string , newLabel * string ) {
10221019 contractInfo := genesisContractStruct ["contract_info" ].(map [string ]interface {})
1023- contractInfo ["admin" ] = newAdmin
1020+ if newAdmin != nil {
1021+ contractInfo ["admin" ] = * newAdmin
1022+ }
1023+ if newLabel != nil {
1024+ contractInfo ["label" ] = * newLabel
1025+ }
10241026}
10251027
10261028func crawlJson (key string , value interface {}, idx int , strHandler func (string , interface {}, int ) interface {}) interface {} {
@@ -1164,6 +1166,7 @@ type FccIssuance struct {
11641166type Reconciliation struct {
11651167 Addr string
11661168 NewAdmin * string
1169+ NewLabel * string
11671170}
11681171
11691172type ReconciliationContractStateRecord struct {
0 commit comments