create-message-kit 1.1.10-beta.1 → 1.1.10-beta.2
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -24,19 +24,6 @@ export async function handleTip(context: XMTPContext) {
|
|
24
24
|
},
|
25
25
|
},
|
26
26
|
} = context;
|
27
|
-
|
28
|
-
|
29
|
-
return {
|
30
|
-
code: 400,
|
31
|
-
message: "Please provide an address to tip.",
|
32
|
-
};
|
33
|
-
}
|
34
|
-
const data = await getUserInfo(address);
|
35
|
-
|
36
|
-
let sendUrl = `${txpayUrl}/?&amount=1&token=USDC&receiver=${address}`;
|
37
|
-
|
38
|
-
return {
|
39
|
-
code: 200,
|
40
|
-
message: sendUrl,
|
41
|
-
};
|
27
|
+
console.log("tip", address);
|
28
|
+
await context.sendPay(1, "USDC", address);
|
42
29
|
}
|