Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bitcore] Support Arb, Base, and Op Chains #3726

Merged
merged 15 commits into from
May 9, 2024
2 changes: 1 addition & 1 deletion packages/bitcore-client/bin/wallet-token
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const main = async () => {
const { name, path, contractAddress, storageType, tokenName } = program.opts();
try {
wallet = await Wallet.loadWallet({ name, path, storageType });
if (!['MATIC', 'ETH'].includes(wallet.chain)) {
if (!['MATIC', 'ETH', 'ARB', 'OP', 'BASE'].includes(wallet.chain)) {
throw new Error('Cannot add token to non-ETH wallet.');
}
const token = await wallet.getToken(contractAddress);
Expand Down
3 changes: 3 additions & 0 deletions packages/bitcore-client/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const chainLibs = {
LTC: BitcoreLibLtc,
ETH: { Web3, ethers },
MATIC: { Web3, ethers },
ARB: { Web3, ethers },
BASE: { Web3, ethers },
OP: { Web3, ethers },
XRP: xrpl
};

Expand Down