File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
app2/src/lib/services/shared Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ export const generateSalt = Effect.sync(() => {
1717 */
1818export const generateSaltAptos = Effect . sync ( ( ) => {
1919 const saltHex = new Uint8Array ( 14 )
20+ crypto . getRandomValues ( saltHex )
2021 return toHex ( saltHex )
2122} )
You can’t perform that action at this time.
0 commit comments