Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refuse to send if other rare ordinals would also be sent to recipient or fee #683

Merged
merged 4 commits into from
Oct 20, 2022

Conversation

raphjaph
Copy link
Collaborator

…t or be consumed by fee

@raphjaph raphjaph requested a review from casey October 20, 2022 20:30
@@ -45,6 +46,10 @@ impl fmt::Display for Error {
f,
"Wallet does not contain enough cardinal UTXOs. Please add additional funds to wallet."
),
Error::AccidentalRareOrdinalSend(ordinal) => write!(
f,
"This transaction would also send along Ordinal {ordinal}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"This transaction would also send along Ordinal {ordinal}"
"Cannot perform transaction without sending rare ordinal {ordinal} to recipient or losing it to the fee"

@@ -35,6 +35,7 @@ use {
pub(crate) enum Error {
NotInWallet(Ordinal),
NotEnoughCardinalUtxos,
AccidentalRareOrdinalSend(Ordinal),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AccidentalRareOrdinalSend(Ordinal),
CollateralDamage(Ordinal),

@@ -45,6 +47,14 @@ impl fmt::Display for Error {
f,
"Wallet does not contain enough cardinal UTXOs. Please add additional funds to wallet."
),
Error::RareOrdinalLostToRecipient(ordinal) => write!(
f,
"This transaction would also send Rare Ordinal {ordinal} to recipient"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"This transaction would also send Rare Ordinal {ordinal} to recipient"
"Transaction would lose rare ordinal {ordinal} to recipient"

@casey casey enabled auto-merge (squash) October 20, 2022 21:05
@casey casey merged commit 460127a into ordinals:master Oct 20, 2022
@raphjaph raphjaph deleted the refuse-to-send-rare-ordinal branch December 1, 2022 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants