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 4, 2023
1 parent fdbcdbe commit 137eb3b
Show file tree
Hide file tree
Showing 11 changed files with 452 additions and 510 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
4 changes: 2 additions & 2 deletions apps/extension/src/provider/Namada.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe("Namada", () => {
tx: {
token,
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId: chain.chainId,
},
source: keyStore[0].address,
Expand Down Expand Up @@ -127,7 +127,7 @@ describe("Namada", () => {
tx: {
token,
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId: chain.chainId,
},
source: keyStore[0].address,
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
6 changes: 3 additions & 3 deletions apps/namada-interface/src/slices/transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const submitTransferTransaction = createAsyncThunk<
tx: {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
publicKey: publicKey,
signer: faucet ? target : undefined,
Expand Down Expand Up @@ -147,7 +147,7 @@ export const submitIbcTransferTransaction = createAsyncThunk<
tx: {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
},
source: txIbcTransferArgs.account.address,
Expand Down Expand Up @@ -178,7 +178,7 @@ export const submitBridgeTransferTransaction = createAsyncThunk<
tx: {
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
chainId,
},
source: txBridgeTransferArgs.account.address,
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 @@ -59,7 +59,7 @@ export default class Namada implements Integration<Account, Signer> {
chainId: this.chain.chainId,
token: Tokens.NAM.address || "",
feeAmount: new BigNumber(0),
gasLimit: new BigNumber(0),
gasLimit: new BigNumber(20_000),
},
source,
receiver,
Expand Down
Loading

0 comments on commit 137eb3b

Please sign in to comment.