Skip to content

Commit 7647927

Browse files
committed
chore(appv2-movement): fixed fmt issues
Signed-off-by: Kaan Caglan <caglankaan@gmail.com>
1 parent e98054d commit 7647927

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app2/src/lib/services/shared/quote-token.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ export const getQuoteToken = (
8383
}
8484

8585
if (destinationChain.rpc_type === "aptos") {
86-
console.info("destinationChain is aptos")
8786
let network: Network
88-
// let rpcUrl: string
8987

9088
const rpc = yield* destinationChain
9189
.requireRpcUrl("rpc")
@@ -94,14 +92,13 @@ export const getQuoteToken = (
9492
console.info("rpc: ", rpc.origin)
9593
if (channel.destination_chain_id === "250") {
9694
network = Network.TESTNET
97-
// rpcUrl = "https://aptos.testnet.bardock.movementlabs.xyz/v1"
9895
} else {
9996
return yield* Effect.fail(
10097
new GetQuoteError({ cause: `Unsupported Aptos network: ${channel.destination_chain_id}` })
10198
)
10299
}
103100

104-
const config = new AptosConfig({ network, fullnode: rpc.origin + "/v1" }) //TODO: rpc.origin is coming without "/v1" at the end, discuss this later
101+
const config = new AptosConfig({ network, fullnode: `${rpc.origin}/v1` }) //TODO: rpc.origin is coming without "/v1" at the end, discuss this later
105102

106103
const aptosClient = new Aptos(config)
107104

app2/src/lib/services/shared/salt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ export const generateSalt = Effect.sync(() => {
1717
*/
1818
export const generateSaltAptos = Effect.sync(() => {
1919
const saltHex = new Uint8Array(14)
20+
crypto.getRandomValues(saltHex)
2021
return toHex(saltHex)
2122
})

0 commit comments

Comments
 (0)