Skip to content

CarlosAlegreUr/CallOrderControl-SmartContract-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation




Tests and simple implementation for CallOrderControl contract.

Check the contract code here => (click)

Check the npm repository => (click)

If further elaboration, development or testing please mention me in your work.

😉 https://github.com/CarlosAlegreUr 😉


📰 Last Changes 📰

  • Fixed bug, funcToCallsLeft mapping now is overwritten correctly. In previous version it could overflow and/or lead to unexpected behaviours.

  • Added getIsSequence() function.

  • Deleted argument _isSequence ins getAllowedFuncCalls().

  • New tests for funcToCallsLeft unexpected behaviour added.

  • New test for function getIsSequience() added.

🎉 FUTURE IMPROVEMENTS 🎉

  • Improve and review (static analysis, audit...) code's tests.

  • Test in testnet.

  • Check if worth it to create better option: adding more allowed calls to client who hasn't used all of them. Now it overwrites.

  • Check gas implications of changing 4 bytes function selector to 32 bytes hashed function signatures.

📨 Contact 📨

Carlos Alegre Urquizú - calegreu@gmail.com


☕ Buy me a CryptoCoffee ☕

Buy me a crypto coffe in ETH, MATIC or BNB ☕🧐☕ (or tokens if you please :p )

0x2365bf29236757bcfD141Fdb5C9318183716d866


📜 License 📜

Distributed under the MIT License. See LICENSE in the repository for more information.

(back to top)



About

In this repo you will find the tests and a simple implementation of my other repo => CallOrderControl-SmartContract-DesignPattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published