kill-switch-mcp 1.3.2 → 1.3.3
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/dist/server.js +8 -24
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -4099,30 +4099,14 @@ async function joinTournament(tournamentAddress, username) {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
const keyAuth = readKeyAuthorization();
|
|
4101
4101
|
const sponsorOpts = feePayerUrl ? { feePayer: true } : {};
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
});
|
|
4111
|
-
} catch (e) {
|
|
4112
|
-
if (keyAuth && e.message?.includes("KeyNotFound")) {
|
|
4113
|
-
approveHash = await walletClient.writeContract({
|
|
4114
|
-
address: USDC_ADDRESS,
|
|
4115
|
-
abi: ERC20_ABI,
|
|
4116
|
-
functionName: "approve",
|
|
4117
|
-
args: [tournamentAddress, buyIn],
|
|
4118
|
-
keyAuthorization: keyAuth,
|
|
4119
|
-
gas: 700000n,
|
|
4120
|
-
...sponsorOpts
|
|
4121
|
-
});
|
|
4122
|
-
} else {
|
|
4123
|
-
throw e;
|
|
4124
|
-
}
|
|
4125
|
-
}
|
|
4102
|
+
const approveHash = await walletClient.writeContract({
|
|
4103
|
+
address: USDC_ADDRESS,
|
|
4104
|
+
abi: ERC20_ABI,
|
|
4105
|
+
functionName: "approve",
|
|
4106
|
+
args: [tournamentAddress, buyIn],
|
|
4107
|
+
...keyAuth ? { keyAuthorization: keyAuth, gas: 700000n } : {},
|
|
4108
|
+
...sponsorOpts
|
|
4109
|
+
});
|
|
4126
4110
|
await pub.waitForTransactionReceipt({ hash: approveHash });
|
|
4127
4111
|
const depositHash = await walletClient.writeContract({
|
|
4128
4112
|
address: tournamentAddress,
|