shell
@@ -367,8 +367,9 @@
3 — Refund a captured payment
shell
refund
-
# 1. Refund nonce for the CURRENT refundable balance (here: 50 USDC)
-NONCE=$(cast call $RAIL0 "refundNonce(bytes32,bytes32,uint120)(bytes32)" $PAYMENT_ID $CONFIG_HASH 50000000 --rpc-url $RPC)
+ # 1. Refund nonce for the CURRENT balances (escrow left, refundable left) — both
+# go into the nonce; read them from getPaymentState. Here: 0 and 50 USDC.
+NONCE=$(cast call $RAIL0 "refundNonce(bytes32,bytes32,uint120,uint120)(bytes32)" $PAYMENT_ID $CONFIG_HASH 0 50000000 --rpc-url $RPC)
# 2. Merchant signs the EIP-3009 digest (validBefore = p.refundExpiry)
SIG=$(cast wallet sign --no-hash --private-key $PAYEE_KEY $DIGEST)
diff --git a/docs/manifesto.html b/docs/manifesto.html
index dd66f79..653705a 100644
--- a/docs/manifesto.html
+++ b/docs/manifesto.html
@@ -50,7 +50,7 @@
- v1.3.0
+ v1.4.0