Skip to content

Commit

Permalink
update ExtName_StorageHandler_treeitory_consignment (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Jul 4, 2024
1 parent 79901d2 commit d3425f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions chain/extrinsic_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion chain/storage_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit d3425f4

Please sign in to comment.