Skip to content

Commit

Permalink
fix: fund liguidity provider
Browse files Browse the repository at this point in the history
  • Loading branch information
druiz0992 committed Dec 8, 2021
1 parent 49f4cc8 commit 67440b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nightfall-deployer/migrations/4_test_tokens_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const ERC1155Mock = artifacts.require('ERC1155Mock.sol');

const recipientAddress = '0x9c8b2276d490141ae1440da660e470e7c0349c63';
const walletTestAddress = '0xfCb059A4dB5B961d3e48706fAC91a55Bad0035C9';
const liquidityProviderAddress = '0x4789FD18D5d71982045d85d5218493fD69F55AC4';
const nERC721 = 100;

module.exports = function(deployer) {
Expand All @@ -21,6 +22,7 @@ module.exports = function(deployer) {
}
// For testing the wallet
await ERC20deployed.transfer(walletTestAddress, 10000000000);
await ERC20deployed.transfer(liquidityProviderAddress, 1000000000000);
for (let i=0; i < 100; i++){
await ERC721deployed.awardItem(walletTestAddress, `https://erc721mock/item-id-${i}.json`);
}
Expand Down
3 changes: 3 additions & 0 deletions wallet/src/store/transactions/transactions.thunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function txInstantWithdrawSubmit(withdrawTransactionHash, fee) {
nf3
.requestInstantWithdrawal(withdrawTransactionHash, fee)
.then(txReceipt => {
if (txReceipt === null) {
throw new Error('Non existent hash');
}
// TODO dispatch error
dispatch(txActions.txSuccess(Nf3.Constants.TX_TYPES.INSTANT_WITHDRAW, txReceipt));
})
Expand Down

0 comments on commit 67440b7

Please sign in to comment.