From d3425f449a8145df1b9c1a1ceb0ef5814196a366 Mon Sep 17 00:00:00 2001 From: AstaFrode Date: Thu, 4 Jul 2024 15:46:45 +0800 Subject: [PATCH] update ExtName_StorageHandler_treeitory_consignment (#226) --- chain/extrinsic_name.go | 6 +++--- chain/storage_handler.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chain/extrinsic_name.go b/chain/extrinsic_name.go index 00f0183..ecf1ead 100644 --- a/chain/extrinsic_name.go +++ b/chain/extrinsic_name.go @@ -381,7 +381,7 @@ const ( ExtName_StorageHandler_renewal_territory = "StorageHandler.renewal_territory" ExtName_StorageHandler_territory_grants = "StorageHandler.territory_grants" ExtName_StorageHandler_territory_rename = "StorageHandler.territory_rename" - ExtName_StorageHandler_treeitory_consignment = "StorageHandler.treeitory_consignment" + ExtName_StorageHandler_territory_consignment = "StorageHandler.territory_consignment" //ExtName_StorageHandler_expansion_space = "StorageHandler.expansion_space" //ExtName_StorageHandler_renewal_space = "StorageHandler.renewal_space" ExtName_StorageHandler_update_price = "StorageHandler.update_price" @@ -2035,8 +2035,8 @@ func (c *ChainClient) InitExtrinsicsName() error { } else { return err } - if callIndex, err := c.GetMetadata().FindCallIndex(ExtName_StorageHandler_treeitory_consignment); err == nil { - ExtrinsicsName[callIndex] = ExtName_StorageHandler_treeitory_consignment + if callIndex, err := c.GetMetadata().FindCallIndex(ExtName_StorageHandler_territory_consignment); err == nil { + ExtrinsicsName[callIndex] = ExtName_StorageHandler_territory_consignment } else { return err } diff --git a/chain/storage_handler.go b/chain/storage_handler.go index dad48b3..e068d45 100755 --- a/chain/storage_handler.go +++ b/chain/storage_handler.go @@ -925,7 +925,7 @@ func (c *ChainClient) TerritoryConsignment(territory_name string) (string, error case status := <-sub.Chan(): if status.IsInBlock { blockhash = status.AsInBlock.Hex() - err = c.RetrieveEvent(status.AsInBlock, ExtName_StorageHandler_treeitory_consignment, StorageHandlerConsignment, c.signatureAcc) + err = c.RetrieveEvent(status.AsInBlock, ExtName_StorageHandler_territory_consignment, StorageHandlerConsignment, c.signatureAcc) return blockhash, err } case err = <-sub.Err():