Skip to content

Commit 2d2c3ff

Browse files
committed
updates
1 parent 9d8201d commit 2d2c3ff

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

components/coinbase_developer_platform/sources/new-wallet-event/new-wallet-event.mjs

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,23 @@ export default {
2828
hooks: {
2929
async activate() {
3030
this.coinbase.configure();
31-
try {
32-
const webhook = await this.coinbase.createWebhook({
33-
notificationUri: this.http.endpoint,
34-
eventType: "wallet_activity",
35-
networkId: this.networkId,
36-
eventTypeFilter: {
37-
addresses: [
38-
this.walletAddress,
39-
],
40-
wallet_id: "",
41-
},
42-
});
31+
const webhook = await this.coinbase.createWebhook({
32+
notificationUri: this.http.endpoint,
33+
eventType: "wallet_activity",
34+
networkId: this.networkId,
35+
eventTypeFilter: {
36+
addresses: [
37+
this.walletAddress,
38+
],
39+
wallet_id: "",
40+
},
41+
});
4342

44-
if (!webhook?.model?.id) {
45-
throw new ConfigurationError("Failed to create webhook");
46-
}
47-
48-
this._setWebhookId(webhook.model.id);
49-
} catch (error) {
50-
console.log(error);
43+
if (!webhook?.model?.id) {
44+
throw new ConfigurationError("Failed to create webhook");
5145
}
46+
47+
this._setWebhookId(webhook.model.id);
5248
},
5349
async deactivate() {
5450
this.coinbase.configure();

0 commit comments

Comments
 (0)