-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: automatically expand the relevant address in the tx summary #993
feat: automatically expand the relevant address in the tx summary #993
Conversation
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
…e-readability-of-transaction-view
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
const history = useHistory(); | ||
const { tokenInfo } = useContext(NetworkContext); | ||
const [isExpanded, setIsExpanded] = useState(false); | ||
const [isExpanded, setIsExpanded] = useState(isPreExpanded ?? true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, it was expanded. I'll doublecheck it.
(cond) => cond.type === UnlockConditionType.Expiration, | ||
) as ExpirationUnlockCondition; | ||
const isExpirationConditionPresent = !!expirationUnlockCondition; | ||
const isExpirationConditionExpired = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic is not working, this output 0x4bd228a6f865de501c1a4c55990d968de1ea958c74852860f66e2befabd74cdb0000
was spent by the return address unlock condition, not the address unlock condition, because the output was spent after the time expired
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we should distinguish between the outputs in the input part, and the outputs in the output part of the tx,
For the inputs, we need to check if the output was spent before or after the expiration time, it should not be checked against "now", but when the output was spent
For the outputs, i feel like we could for now always expand the address unlock condition and call it a day, at least for now
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
…e-readability-of-transaction-view
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
…e-readability-of-transaction-view
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
superseeded by #1027 |
Description of change
Open transaction details
fixes #982.
Type of change
How the change has been tested
Make sure to provide instructions for the maintainer as well as any relevant configurations.
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.