Skip to content

Commit

Permalink
fix: enviroment to wasmbridge
Browse files Browse the repository at this point in the history
  • Loading branch information
meomeocoj committed Sep 5, 2024
1 parent bfff7aa commit 3ff4ba6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_MIXPANEL_TOKEN=
NEXT_PUBLIC_ENV=
3 changes: 1 addition & 2 deletions components/page/bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {
CosmosChainId,
calculateTimeoutTimestamp,
getCosmosGasPrice,
network,
} from "@oraichain/oraidex-common";
import {
BridgeAdapter,
Expand Down Expand Up @@ -554,7 +553,7 @@ const Bridge = () => {
undefined,
undefined,
{
contractAddress: CW_TON_BRIDGE,
contractAddress: network.CW_TON_BRIDGE,
msg: toBinary({
bridge_to_ton: {
to: tonAddress,
Expand Down
23 changes: 9 additions & 14 deletions libs/eip191.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,15 @@ export class MetamaskOfflineSigner implements OfflineAminoSigner {
try {
const result = localStorage.getItem(EIP_EIP_STORAGE_KEY_ACC);
const parsedResult = JSON.parse(result);
return (
{
...parsedResult,
accounts: [
{
...parsedResult.accounts[0],
pubkey: this.stringToUint8Array(parsedResult.accounts[0].pubkey),
},
],
} ?? {
accounts: [],
cosmosToEvm: {},
}
);
return {
...parsedResult,
accounts: [
{
...parsedResult.accounts[0],
pubkey: this.stringToUint8Array(parsedResult.accounts[0].pubkey),
},
],
};
} catch (error) {
console.log("error getAccountFromStorage: ", error);
return { accounts: [], cosmosToEvm: {} };
Expand Down

0 comments on commit 3ff4ba6

Please sign in to comment.