mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-16 00:53:58 -05:00
531: Bump thiserror from 1.0.24 to 1.0.25 r=thomaseizinger a=dependabot[bot] Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.24 to 1.0.25. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/thiserror/releases">thiserror's releases</a>.</em></p> <blockquote> <h2>1.0.25</h2> <ul> <li>Support <code>error(transparent)</code> on errors containing a non-<code>'static</code> inner error (<a href="https://github-redirect.dependabot.com/dtolnay/thiserror/issues/113">#113</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="19cb5cee4b"><code>19cb5ce</code></a> Release 1.0.25</li> <li><a href="e49c10f2ba"><code>e49c10f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/thiserror/issues/134">#134</a> from dtolnay/nonstatic</li> <li><a href="1ed8751081"><code>1ed8751</code></a> Support non-static AsDynError lifetimes</li> <li><a href="51a1ff6593"><code>51a1ff6</code></a> Add regression test for issue 113</li> <li><a href="ee2a47d3af"><code>ee2a47d</code></a> Adjust macro hygiene test formatting</li> <li><a href="c610d97267"><code>c610d97</code></a> Update ui test suite to nightly-2021-05-14</li> <li><a href="c10adbc25e"><code>c10adbc</code></a> Ignore manual_map clippy lint</li> <li>See full diff in <a href="https://github.com/dtolnay/thiserror/compare/1.0.24...1.0.25">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> 535: Bitcoin network check when building PSBT r=da-kami a=da-kami This ensures that funds are not sent to an address on the wrong network. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Karzel <daniel@comit.network>
This commit is contained in:
commit
5385fc1aa0
5 changed files with 572 additions and 37 deletions
|
|
@ -303,6 +303,10 @@ where
|
|||
address: Address,
|
||||
amount: Amount,
|
||||
) -> Result<PartiallySignedTransaction> {
|
||||
if self.network != address.network {
|
||||
bail!("Cannot build PSBT because network of given address is {} but wallet is on network {}", address.network, self.network);
|
||||
}
|
||||
|
||||
let wallet = self.wallet.lock().await;
|
||||
let client = self.client.lock().await;
|
||||
let fee_rate = client.estimate_feerate(self.target_block)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue