使用Flow-JS测试测试时如何获得交易费用
我有一个正在测试的MINT TX,我希望这是真的:
usersBalanceAfterMinting == usersBalanceBeforeMinting - costOfMinting - txFee
但是,当我从TX中打印出事件时,没有feesdeducted
事件,也没有信息TX关于TX的成本是多少...
如何使用Flow-JS测试输出TXFEE?
I have a mint tx that is paid which I am testing, and i expect this to be true:
usersBalanceAfterMinting == usersBalanceBeforeMinting - costOfMinting - txFee
However, when i print out the events from the tx, there is no feesDeducted
event, and no info in the tx as to what the cost of the tx was...
How do I output the txFee using flow-js-testing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
启动模拟器 - Transaction-Fees
标志如下:然后您可以看到
费用
事件。You can start emulator with
--transaction-fees
flag like below:Then you can see
FeesDeducted
events.