From 8b75a361508837b7df1da0d4c621febf6210ea81 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 16 Jun 2024 12:56:50 +0800 Subject: [PATCH] 1 --- server/marketserver/constant/constant.go | 5 +++++ server/marketserver/mt/Contract.go | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/server/marketserver/constant/constant.go b/server/marketserver/constant/constant.go index 318bcacc..ef999ac8 100644 --- a/server/marketserver/constant/constant.go +++ b/server/marketserver/constant/constant.go @@ -28,3 +28,8 @@ const ( TRADE_CREATED_EVENT = "imtbl_zkevm_trade_created" ACTIVITY_SALE_EVENT = "imtbl_zkevm_activity_sale" ) + +const ( + CONTRACT_NAME_CFHero = "CFHero" + CONTRACT_NAME_GoldBrick = "GoldBrick" +) diff --git a/server/marketserver/mt/Contract.go b/server/marketserver/mt/Contract.go index 7c4537f3..9de60b4b 100644 --- a/server/marketserver/mt/Contract.go +++ b/server/marketserver/mt/Contract.go @@ -4,6 +4,7 @@ import ( "f5" "mtb" "sync" + "strings" ) type Contract struct { @@ -18,5 +19,6 @@ type ContractTable struct { func (this *Contract) Init1() { } -func (this *ContractTable) Search(name string, itemIds map[int32]int32) { +func (this *Contract) GetContractAddress() string { + return strings.ToLower(this.GetAddress()) }