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

Vik #2

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Vik #2

wants to merge 14 commits into from

Conversation

SvineruS
Copy link
Member

@SvineruS SvineruS commented Dec 8, 2021

No description provided.

Comment on lines 68 to 76
function toHex(d: any) {
return ("0"+(Number(d).toString(16))).slice(-2).toUpperCase()
}
function randomAddress() {
return "0x" + ethers.utils.keccak256(randomFrom0To(100000).toString()).toString().slice(0, 40)
let st = `0x${toHex(randomFrom0To(100000))}`;
return ethers.utils.keccak256(st).toString().slice(0, 40)
}
function randomHash() {
return "0x" + ethers.utils.keccak256(randomFrom0To(100000).toString()).toString().slice(0, 64)
return ethers.utils.keccak256(`0x${toHex(randomFrom0To(100000))}`).toString().slice(0, 64)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    function randomAddress() {
      return randomHash().slice(0, 42)
    }
    function randomHash() {
      return ethers.utils.hashMessage(randomFrom0To(100000).toString())
    }

.find({})
.sort({last_update: -1})
.limit(args.first)
.paginate(args.cursor) // If IDE lights this as error - all ok
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// noinspection

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.

2 participants