MeshJS / mesh

TypeScript open-source library to advance Web3 development on Cardano
https://meshjs.dev
Apache License 2.0
221 stars 65 forks source link

set scriptSize of collateral inputs to 0 to bypass fetcher logic #390

Closed twwu123 closed 1 week ago

twwu123 commented 1 week ago

Summary

Collateral inputs were included in incomplete tx ins, affecting the need for a fetcher in offline transactions. Since any reference scripts in collateral inputs do not affect fee calculations, it is possible to directly set the scriptSize of collateral inputs to 0, bypassing the inclusion of these scripts for fee calculations.

Affect components

Please indicate which part of the Mesh Repo

Type of Change

Please mark the relevant option(s) for your pull request:

Related Issues

Checklist

Please ensure that your pull request meets the following criteria:

Additional Information

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mesh-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 9:06am
mesh-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 9:06am