EatTheBlocks Forum

Mini-project "Multisig Wallet" , test approveTransfer function , (1/3) happy path

Hi Julian ,

Thank you for the great course and for your kind efforts and many thanks in advance for your replay and for your help .

I have an issue when i test the approve transfer function as per below:

PS E:\wallet> truffle test

Compiling your contracts…

Compiling .\contracts\Migrations.sol
Compiling .\contracts\wallet.sol
Artifacts written to C:\Users\9717~1\AppData\Local\Temp\test–10856-mp8B5qrCBdta
Compiled successfully using:

  • solc: 0.6.0+commit.26b70077.Emscripten.clang

web3-shh package will be deprecated in version 1.3.5 and will no longer be supported.
web3-bzz package will be deprecated in version 1.3.5 and will no longer be supported.

Contract: Wallet
√ should have correct approvers and quoram (732ms)
√ should creat transfers correctly (1401ms)
√ should NOT create transfers if sender is not approved
AssertionError: Expected an exception but none was received
AssertionError: Expected an exception but none was received
1) “before each” hook for “should increment approvals”

3 passing (6s)
1 failing

  1. Contract: Wallet
    “before each” hook for “should increment approvals”:
    Uncaught Error: the string “abort(AssertionError: Expected an exception but none was received). Build with -s ASSERTIONS=1 for more info.” was thrown, throw an Error :slight_smile:

error fixed , thanks

1 Like