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

ethers: Separate v5 and v6 subpaths #3

Closed
wants to merge 3 commits into from
Closed

Conversation

blukat29
Copy link
Contributor

Using with ethers v5

// commonjs
const { Wallet } = require("@klaytn/ethers-ext")
const { Wallet } = require("@klaytn/ethers-ext").v5
const { Wallet } = require("@klaytn/ethers-ext/v5")

// esm
import { Wallet } from "@klaytn/ethers-ext";

// esm
import { v5 } from "@klaytn/ethers-ext";
const { Wallet } = v5;

// esm subpath import. If using typescript, add "moduleResolution": "nodenext" to tsconfig.json
import { Wallet } from "@klaytn/ethers-ext/v5";

Using with ethers v6

// commonjs
const { Wallet } = require("@klaytn/ethers-ext").v6
const { Wallet } = require("@klaytn/ethers-ext/v6")

// esm
import { v6 } from "@klaytn/ethers-ext";
const { Wallet } = v6;

// esm subpath import. If using typescript, add "moduleResolution": "nodenext" to tsconfig.json
import { Wallet } from "@klaytn/ethers-ext/v6";

@blukat29
Copy link
Contributor Author

blukat29 commented Jul 2, 2024

Continued in #7

@blukat29 blukat29 closed this Jul 2, 2024
@kjeom kjeom mentioned this pull request Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant