I got the following code at: Securify: Practical Security Analysis of Smart Contracts

contract Wallet {
   // fixed address of the wallet library
   address constant walletLibrary = ...;
   // function that receives ether
   function deposit() payable {
      log(msg.sender, msg.value);
   // function for withdrawing ether
   function withdraw() {
   // ...

For the above contract can somebody show me the WalletLibrary contract code which allows this (above) Wallet to send Ether. Also specify the address of WalletLibrry which is empty in the above contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.