Skip to content

Comments

Enhancements#1

Open
gustavoguimaraes wants to merge 8 commits intocoin1111:masterfrom
gustavoguimaraes:enhancements
Open

Enhancements#1
gustavoguimaraes wants to merge 8 commits intocoin1111:masterfrom
gustavoguimaraes:enhancements

Conversation

@gustavoguimaraes
Copy link

Thanks for taking the lead on this @coin1111 !

I saw this PR today and took a few minutes of my work day to improve a few things in the contract - making it more idiomatic and adding a security check.

I also added a few improvements to running the scripts with npm. Hope you like it. You can let me know if you have any questions.

bytes32 receiverOther;
// value sent
uint64 balance;
uint256 balance;
Copy link
Author

Choose a reason for hiding this comment

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

unit256 and bytes32 is what the EVM gives you as default. Lowering the types makes it actual more gas costly in this instance.

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