fix: update default URLs and recipient address for payment app
rabbitprincess committed
Jun 5, 2026 at 00:10 UTC
57f817844970debb3f2d0b79e119daac975d7e2b
2 files changed
+5
-5
cmd/payment-app/main.go
+4
-4
@@ -19,8 +19,8 @@ import (
19
)
20
21
const (
22
- defaultThumbnailURL = "https://image.s-h.day/generated/1e56ad0f0a1d.png"
23
- defaultPhotoURL = "https://image.s-h.day/generated/905a4835ad50.png"
22
+ defaultThumbnailURL = "https://image.portal.thumbgo.kr/generated/1e56ad0f0a1d.png"
23
+ defaultPhotoURL = "https://image.portal.thumbgo.kr/generated/905a4835ad50.png"
24
)
25
26
type paymentConfig struct {
@@ -66,7 +66,7 @@ func run(args []string) error {
66
utils.StringFlagEnv(fs, &cfg.identityJSON, "identity-json", "", "identity json payload; overrides --identity-path contents and is persisted there when both are set", "IDENTITY_JSON")
67
utils.IntFlagEnv(fs, &cfg.maxActiveRelays, "max-active-relays", 3, nil, "maximum number of auto-selected relays to keep connected; explicit --relays are always included", "MAX_ACTIVE_RELAYS")
68
utils.StringFlag(fs, &cfg.addr, "addr", "127.0.0.1:8093", "local payment app HTTP listen address (host:port or URL)")
69
- utils.StringFlag(fs, &cfg.name, "name", "payment-app3", "public hostname prefix (single DNS label)")
69
+ utils.StringFlag(fs, &cfg.name, "name", "payment-app", "public hostname prefix (single DNS label)")
70
utils.StringFlag(fs, &cfg.desc, "description", "Portal Sui wallet x402 payment app", "lease description")
71
utils.StringFlag(fs, &cfg.tags, "tags", "payment,x402,sui,usdc,image,photo", "comma-separated lease tags")
72
utils.StringFlag(fs, &cfg.owner, "owner", "PortalApp Developer", "lease owner")
@@ -74,7 +74,7 @@ func run(args []string) error {
74
utils.StringFlag(fs, &cfg.photoURL, "photo-url", defaultPhotoURL, "image URL revealed after payment")
75
utils.BoolFlag(fs, &cfg.hide, "hide", false, "hide this lease from listings")
76
utils.BoolFlag(fs, &cfg.x402Testnet, "x402-testnet", true, "use Sui testnet for x402 payments")
77
- utils.StringFlag(fs, &cfg.x402PayTo, "x402-pay-to", "0xea049676e91d29270f5a95042b6da73ff918fbae19377c0a8bf18ad105e88663", "Sui USDC recipient address")
77
+ utils.StringFlag(fs, &cfg.x402PayTo, "x402-pay-to", "", "Sui USDC recipient address")
78
utils.StringFlag(fs, &cfg.x402Amount, "x402-amount", "10000", "USDC amount in atomic units")
79
utils.RepeatedStringFlag(fs, &cfg.x402RPCs, "x402-rpc", "Sui RPC endpoint; repeat to try multiple endpoints before defaults")
80
fs.IntVar(&cfg.x402MaxTimeoutSeconds, "x402-max-timeout", 0, "x402 max payment timeout seconds advertised to clients")
config.toml
+1
-1
@@ -2,7 +2,7 @@
2
# Bump protocol versions only when wire-level behavior changes.
3
4
[release]
5
-version = "v2.3.0"
5
+version = "v2.3.1"
6
base_url = "https://github.com/gosuda/portal-tunnel/releases"
7
8
[protocol]