diff --git a/src/integrations/fb_signer.ts b/src/integrations/fb_signer.ts index 83b8133..717c760 100644 --- a/src/integrations/fb_signer.ts +++ b/src/integrations/fb_signer.ts @@ -15,7 +15,7 @@ import { MaticTx } from "../types/matic"; export type AssetId = | "SOL_TEST" | "SOL" - | "ETH_TEST3" + | "ETH_TEST5" | "ETH_TEST6" | "ETH" | "ATOM_COS_TEST" @@ -85,12 +85,12 @@ export class FbSigner { try { const assetArgs = assetId ? { - assetId, - source: { - type: PeerType.VAULT_ACCOUNT, - id: this.vaultId.toString(), - }, - } + assetId, + source: { + type: PeerType.VAULT_ACCOUNT, + id: this.vaultId.toString(), + }, + } : {}; const tx: TransactionArguments = { @@ -115,7 +115,7 @@ export class FbSigner { */ public async signTypedMessage( eip712message: any, - assetId: "ETH" | "ETH_TEST3" | "ETH_TEST6", + assetId: "ETH" | "ETH_TEST5" | "ETH_TEST6", note?: string, ): Promise { try { diff --git a/src/services/matic.ts b/src/services/matic.ts index ce63ee7..24ffba3 100644 --- a/src/services/matic.ts +++ b/src/services/matic.ts @@ -135,7 +135,7 @@ export class MaticService extends Service { const fbSigner = this.getFbSigner(integration); const fbNote = note ? note : "MATIC tx from @kilnfi/sdk"; - const fbTx = await fbSigner.sign(payload, this.testnet ? "ETH_TEST3" : "ETH", fbNote); + const fbTx = await fbSigner.sign(payload, this.testnet ? "ETH_TEST5" : "ETH", fbNote); const { data } = await api.post(`/v1/matic/transaction/prepare`, { unsigned_tx_serialized: tx.data.unsigned_tx_serialized, r: `0x${fbTx?.signedMessages?.[0].signature.r}`, @@ -163,7 +163,7 @@ export class MaticService extends Service { const fbSigner = this.getFbSigner(integration); const fbNote = note ? note : "MATIC tx from @kilnfi/sdk"; - const assetId = this.testnet ? "ETH_TEST3" : "ETH"; + const assetId = this.testnet ? "ETH_TEST5" : "ETH"; return await fbSigner.signAndBroadcastWith( payload, assetId,