File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/daimo-api/src/network Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
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'
15
14
name : API Deploy
16
15
runs-on : ubuntu-latest
17
16
steps :
Original file line number Diff line number Diff line change 1
1
import { PlatformType } from "@daimo/common" ;
2
2
import { p256 } from "@noble/curves/p256" ;
3
- import { base64nopad , base64urlnopad } from "@scure/base" ;
3
+ import { base64urlnopad } from "@scure/base" ;
4
4
import { Address , getAddress } from "viem" ;
5
5
6
6
import { chainConfig , getEnvApi } from "../env" ;
@@ -157,7 +157,9 @@ export class BinanceClient {
157
157
} else if ( platform === "android" ) {
158
158
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 } ` ;
159
159
console . log ( `[BINANCE] created deeplink: ${ deeplinkUrl } ` ) ;
160
- const encodedDeeplinkUrl = base64nopad . encode ( Buffer . from ( deeplinkUrl ) ) ;
160
+ const encodedDeeplinkUrl = base64urlnopad . encode (
161
+ Buffer . from ( deeplinkUrl )
162
+ ) ;
161
163
return `${ universalLinkUrl } ?_dp=${ encodedDeeplinkUrl } ` ;
162
164
} else return undefined ;
163
165
}
You can’t perform that action at this time.
0 commit comments