Anastasia-Labs / lucid-evolution

https://anastasia-labs.github.io/lucid-evolution/
39 stars 14 forks source link

feat: Ensure change address receives minimum required ADA #153

Closed solidsnakedev closed 3 months ago

solidsnakedev commented 3 months ago

This PR fixes situations where the Lovelace asset sent to the change address is insufficient, causing the transaction to fail. An example of this condition can be found below:

{
  txHash: '197f6f6ea48bc20b72315613814e5e551f50430e99cf397f6639f2a7c41cc13b',
  outputIndex: 1,
  assets: {
    lovelace: 228825 ,
    '1c05caed08ddd5c9f233f4cb497eeb6e5f685e8e7b842b08897d1dfe4d794d696e746564546f6b656e': 1n,
    '501b8b9dce8d7c1247a14bb69d416c621267daa72ebd6c81942931924d794d696e746564546f6b656e': 1n,
    eb8b660cf939281c277264389c4086e7c79baf78e08d0c48668420ab4d794d696e746564546f6b656e: 1n
  },
  address: 'addr_test1qrngfyc452vy4twdrepdjc50d4kvqutgt0hs9w6j2qhcdjfx0gpv7rsrjtxv97rplyz3ymyaqdwqa635zrcdena94ljs0xy950',
  datumHash: undefined,
  datum: undefined,
  scriptRef: undefined
}
changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: e4b385e834cb4aadc5276100138948c090c3a054

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @lucid-evolution/lucid | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR