-
Notifications
You must be signed in to change notification settings - Fork 77
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
ERC20 unit test refactor #80
Conversation
416c914
to
b7d90fb
Compare
import type { BigNumberish, BytesLike } from 'ethers'; | ||
import { BigNumber as BN, BigNumber, ethers } from 'ethers'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type { BigNumberish, BytesLike } from 'ethers'; | |
import { BigNumber as BN, BigNumber, ethers } from 'ethers'; | |
import type { BigNumberish, BytesLike } from 'ethers'; | |
import { BigNumber as BN, ethers } from 'ethers'; |
Haven't seen import type
before. Can these two imports be merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To my knowledge they can be merged, but ESLint will complain about it. It was a rule introduced by @luizstacio if I recall correctly, it might have something to do with how the monorepo packages the typings etc.
return _messageSender; | ||
} | ||
|
||
function sendMessage(bytes32, bytes calldata) external pure {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What purpose does this empty function serve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a mock contract - so it just implements the interface to accept these calls.
This PR:
getOrDeployERC721Gateway
that was pasted from ERC20 gateway by mistake