mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Support including arbitrary data in TXs and return it with outputs
Fixes a bug where all payments identified as being to (0, 0) instead of their actual subaddress.
This commit is contained in:
@@ -166,6 +166,7 @@ impl Coin for Monero {
|
||||
inputs.drain(..).map(|input| input.0).collect(),
|
||||
payments.to_vec(),
|
||||
Some(self.address(spend)),
|
||||
None,
|
||||
fee,
|
||||
)
|
||||
.map_err(|_| CoinError::ConnectionError)?,
|
||||
@@ -245,6 +246,7 @@ impl Coin for Monero {
|
||||
outputs,
|
||||
vec![(address, amount - fee)],
|
||||
Some(Self::empty_address()),
|
||||
None,
|
||||
self.rpc.get_fee().await.unwrap(),
|
||||
)
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user