Skip to content

Commit

Permalink
fix: base max send error (#4543)
Browse files Browse the repository at this point in the history
  • Loading branch information
weatherstar authored May 6, 2024
1 parent a8fd5bd commit 60b3ac5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/engine/src/vaults/impl/evm/Vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,10 @@ import type {
import type { IRpcTxEvm } from './types';
import type { IJsonRpcRequest } from '@onekeyfe/cross-inpage-provider-types';

const OPTIMISM_NETWORKS: string[] = [
const EVM_L2_NETWORKS_REQUIRE_L1_FEE: string[] = [
OnekeyNetwork.optimism,
OnekeyNetwork.toptimism,
OnekeyNetwork.base,
];

const ERC721 = ERC721MetadataArtifact.abi;
Expand Down Expand Up @@ -1271,7 +1272,7 @@ export default class Vault extends VaultBase {

// For L2 networks with L1 fee.
let baseFeeValue = '0';
if (OPTIMISM_NETWORKS.includes(this.networkId)) {
if (EVM_L2_NETWORKS_REQUIRE_L1_FEE.includes(this.networkId)) {
// Optimism & Optimism Kovan
// call gasL1Fee(bytes) of GasPriceOracle at 0x420000000000000000000000000000000000000F
const txData = ethers.utils.serializeTransaction({
Expand Down

0 comments on commit 60b3ac5

Please sign in to comment.