Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('creating a reward transaction',()=>{
- beforeEach(()=>{
- transaction = Transaction.rewardTransaction(wallet,Wallet.blockchainWallet());
- });
- it('reward the miners wallet',()=>{
- expect(transaction.outputs.find(output => output.address === wallet.publicKey).amount).toEqual(MINING_REWARD);
- });
- });
Add Comment
Please, Sign In to add comment