UNPKG
@thenextblock/hardhat-weth
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
WETH deployment plugin for Hardhat
github.com/thenextblock/DefiToolbox
thenextblock/DefiToolbox
@thenextblock/hardhat-weth
/
src
/
functions.ts
9 lines
(6 loc)
•
254 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Signer
}
from
'ethers'
;
import
{
WETH9
,
WETH9
__factory }
from
'../typechain'
;
export
async
function
deployWeth
(
deployer: Signer
):
Promise
<
WETH9
> {
const
contract =
await
new
WETH9
__factory(deployer).
deploy
();
return
contract.
deployed
(); }