SimpleSavingsWallet.js 470 B

12345678910111213141516
  1. 'use strict'
  2. const SimpleSavingsWallet = artifacts.require('../contracts/examples/SimpleSavingsWallet.sol')
  3. contract('SimpleSavingsWallet', function(accounts) {
  4. let savingsWallet
  5. let owner
  6. beforeEach(async function() {
  7. savingsWallet = await SimpleSavingsWallet.new(4141)
  8. owner = await inheritable.owner()
  9. })
  10. it('should receive funds', async function() {
  11. await web3.eth.sendTransaction({from: owner, to: this.contract.address, value: amount})
  12. })