Skip to content

Commit 3211466

Browse files
committed
fix build
1 parent 9d766a6 commit 3211466

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ on:
1010

1111
jobs:
1212
api-deploy:
13-
# master and prod only, no tags
14-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/prod'
13+
if: github.ref == 'refs/heads/prod'
1514
name: API Deploy
1615
runs-on: ubuntu-latest
1716
steps:

packages/daimo-api/src/network/binanceClient.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PlatformType } from "@daimo/common";
22
import { p256 } from "@noble/curves/p256";
3-
import { base64nopad, base64urlnopad } from "@scure/base";
3+
import { base64urlnopad } from "@scure/base";
44
import { Address, getAddress } from "viem";
55

66
import { chainConfig, getEnvApi } from "../env";
@@ -157,7 +157,9 @@ export class BinanceClient {
157157
} else if (platform === "android") {
158158
const deeplinkUrl = `bnc://app.binance.com/payment/secpay?extra_key_api_type=on-chain-transfer&transactionId=${transactionId}&nonce=${nonce}&sign=${sig}&timeStamp=${timestamp}&redirectUrl=${redirectUrl}`;
159159
console.log(`[BINANCE] created deeplink: ${deeplinkUrl}`);
160-
const encodedDeeplinkUrl = base64nopad.encode(Buffer.from(deeplinkUrl));
160+
const encodedDeeplinkUrl = base64urlnopad.encode(
161+
Buffer.from(deeplinkUrl)
162+
);
161163
return `${universalLinkUrl}?_dp=${encodedDeeplinkUrl}`;
162164
} else return undefined;
163165
}

0 commit comments

Comments
 (0)