Skip to content

Commit

Permalink
chore: update to latest draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjasiuk committed Sep 5, 2023
1 parent 1da35fd commit 65e59d5
Show file tree
Hide file tree
Showing 9 changed files with 452 additions and 509 deletions.
2 changes: 1 addition & 1 deletion apps/extension/src/Approvals/ApproveTx/ConfirmLedgerTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ConfirmLedgerTx: React.FC<Props> = ({ details }) => {
const txArgs: TxProps = {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
publicKey,
};
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/background/offscreen/offscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SW_TTL = 20000;
sender: unknown,
sendResponse: (response?: unknown) => void
): boolean {
const {data, type, routerId, target} = submitTransferMessage;
const { data, type, routerId, target } = submitTransferMessage;

if (target !== OFFSCREEN_TARGET) {
return false;
Expand Down
12 changes: 6 additions & 6 deletions apps/namada-interface/src/slices/StakingAndGovernance/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const toMyValidators = (
index == -1
? (arr: MyValidators[]) => arr
: (arr: MyValidators[], idx: number) => [
...arr.slice(0, idx),
...arr.slice(idx + 1),
];
...arr.slice(0, idx),
...arr.slice(idx + 1),
];

const stakedAmount = new BigNumber(stake).plus(
new BigNumber(v?.stakedAmount || 0)
Expand Down Expand Up @@ -249,7 +249,7 @@ export const postNewBonding = createAsyncThunk<
tx: {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
publicKey,
},
Expand Down Expand Up @@ -285,7 +285,7 @@ export const postNewUnbonding = createAsyncThunk<
tx: {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
publicKey,
},
Expand Down Expand Up @@ -314,7 +314,7 @@ export const postNewWithdraw = createAsyncThunk<
tx: {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
publicKey,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/src/Namada.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { BridgeProps, Integration } from "./types/Integration";
export default class Namada implements Integration<Account, Signer> {
private _namada: WindowWithNamada["namada"] | undefined;

constructor(public readonly chain: Chain) { }
constructor(public readonly chain: Chain) {}

public get instance(): INamada | undefined {
return this._namada;
Expand Down
Loading

0 comments on commit 65e59d5

Please sign in to comment.