-
Notifications
You must be signed in to change notification settings - Fork 455
Update token module initGenesisState hook - Closes #7119 #7145
Update token module initGenesisState hook - Closes #7119 #7145
Conversation
1fd0ad7
to
a44e786
Compare
a44e786
to
3d3dd02
Compare
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.
Excellent 🚀
|
||
// import { getRandomBytes } from '@liskhq/lisk-cryptography'; | ||
|
||
const oneLisk = BigInt('100000000'); |
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.
maybe oneLiskToBeddows
is more accurate?
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.
I think oneLSKToBeddows
is more accurate, since Lisk
a brand and LSK
is the token's name. It's also aligned with our functions like convertLSKToBeddows
and we can use this function here like const oneLSKToBeddows = convertLSKToBeddows('1');
, I think this is more readable.
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.
I think we could use convertLSKToBeddows
but LSK or beddow is not the main point here, so ill just update the variable name
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.
Just few comments, otherwise great job!
|
||
// import { getRandomBytes } from '@liskhq/lisk-cryptography'; | ||
|
||
const oneLisk = BigInt('100000000'); |
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.
I think oneLSKToBeddows
is more accurate, since Lisk
a brand and LSK
is the token's name. It's also aligned with our functions like convertLSKToBeddows
and we can use this function here like const oneLSKToBeddows = convertLSKToBeddows('1');
, I think this is more readable.
…-update_token_genesis
What was the problem?
This PR resolves #7119
How was it solved?
initGenesisState
hook according to the LIPHow was it tested?