create-message-kit 1.1.10-beta.2 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
@@ -71,7 +71,6 @@ async function updatePackagejson(destDir, templateType) {
|
|
71
71
|
|
72
72
|
packageTemplate.dependencies["@xmtp/message-kit"] = "latest";
|
73
73
|
//Add for yarn in general
|
74
|
-
packageTemplate.scripts.postinstall = "tsc";
|
75
74
|
packageTemplate.packageManager = `yarn@4.5.1`;
|
76
75
|
|
77
76
|
fs.writeJsonSync(resolve(destDir, "package.json"), packageTemplate, {
|
package/package.json
CHANGED
@@ -24,6 +24,19 @@ export async function handleTip(context: XMTPContext) {
|
|
24
24
|
},
|
25
25
|
},
|
26
26
|
} = context;
|
27
|
-
|
28
|
-
|
27
|
+
|
28
|
+
if (!address) {
|
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
|
+
};
|
29
42
|
}
|