Anastasia-Labs / lucid-evolution

https://anastasia-labs.github.io/lucid-evolution/
22 stars 7 forks source link

Attempting to pay to an address with an empty assets object #162

Closed kunj77 closed 5 hours ago

kunj77 commented 3 weeks ago

Hi, I am trying to use pay.ToAddress but without any assets for a transaction lucid .newTx() .pay.ToAddressWithData( address, { kind: "inline", value: Data.void(), }, {}, validator, )

This was allowed in lucid-cardano, but I get an error Attempting to pay to an address with an empty assets object with lucid-evolution. Can you guys support this? Currently we having to add additional ada while doing this just to satisfy the condition

solidsnakedev commented 2 weeks ago

You can set it to undefined, but we could add an empty object as well

kunj77 commented 5 hours ago

Thanks, it works