Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Update tx.rs to include return_code in server respone #141

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

msobh13
Copy link
Contributor

@msobh13 msobh13 commented Feb 17, 2024

No description provided.

@CLAassistant
Copy link

CLAassistant commented Feb 17, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@rllola rllola left a comment

Choose a reason for hiding this comment

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

Looks good to me but I would keep the comments ^^. They are not the best comments but otherwise we forget some important things.

src/server/tx.rs Outdated
@@ -189,9 +182,10 @@ impl TryFrom<Row> for TxInfo {
let gas_limit_multiplier = row.try_get("gas_limit_multiplier")?;
let code: Option<Vec<u8>> = row.try_get("code")?;
let data: Option<Vec<u8>> = row.try_get("data")?;
let return_code = row.try_get("return_code").ok(); // Parsing return_code
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could use row.try_get("return_code")?; to keep it align with the rest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes sure

Copy link
Contributor

Choose a reason for hiding this comment

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

If you can do the change I think we will be good to merge.

Copy link
Contributor Author

@msobh13 msobh13 left a comment

Choose a reason for hiding this comment

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

Added comments back.. sorry for removing it

changed to row.try_get("return_code")?;
Copy link
Contributor Author

@msobh13 msobh13 left a comment

Choose a reason for hiding this comment

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

updated the row.try_get("return_code")?;

@rllola rllola merged commit 160d159 into Zondax:main Feb 19, 2024
5 of 6 checks passed
HadesGuard pushed a commit to HadesGuard/namadexer that referenced this pull request Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants