Skip to content

Commit fc28e45

Browse files
committed
Merge branch 'feat/ccc' into dev
# Conflicts: # tables/t_order_info.go
2 parents 7b76ea8 + e84adf1 commit fc28e45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func GetPaymentAddress(payTokenId tables.PayTokenId, paymentAddress string) (str
193193
if _, ok := Cfg.Chain.Polygon.AddrMap[paymentAddress]; ok {
194194
return strings.ToLower(paymentAddress), nil
195195
}
196-
case tables.PayTokenIdDAS, tables.PayTokenIdCKB:
196+
case tables.PayTokenIdDAS, tables.PayTokenIdCKB, tables.PayTokenIdCkbCCC:
197197
if _, ok := Cfg.Chain.Ckb.AddrMap[paymentAddress]; ok {
198198
if parseAddr, err := address.Parse(paymentAddress); err != nil {
199199
return "", fmt.Errorf("address.Parse err: %s[%s]", err.Error(), paymentAddress)

tables/t_order_info.go

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const (
5757
PayTokenIdStripeUSD PayTokenId = "stripe_usd"
5858
PayTokenIdDIDPoint PayTokenId = "did_point"
5959
PayTokenIdBTC PayTokenId = "btc_btc"
60+
PayTokenIdCkbCCC = "ckb_ccc"
6061
)
6162

6263
func (p PayTokenId) GetContractAddress(net common.DasNetType) string {

0 commit comments

Comments
 (0)