Skip to content

Commit

Permalink
Add missing token recipient ctor argument in crowdfunding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad committed Jun 26, 2024
1 parent 9ddcaf6 commit 48f78fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion listings/applications/crowdfunding/src/tests.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ fn deploy_with_token(
let token_symbol: ByteArray = "MTKN";
let token_supply: u256 = 100000;
let token_owner = contract_address_const::<'token_owner'>();
let token_recipient = token_owner;

// deploy ERC20 token
let mut token_constructor_calldata = array![];
(token_name, token_symbol, token_supply, token_owner).serialize(ref token_constructor_calldata);
((token_name, token_symbol, token_supply, token_recipient), token_owner)
.serialize(ref token_constructor_calldata);
let (token_address, _) = token.deploy(@token_constructor_calldata).unwrap();

// transfer amounts to some pledgers
Expand Down

0 comments on commit 48f78fe

Please sign in to comment.