-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
txn emitter - add more info on failed txn #15756
Conversation
⏱️ 2h 16m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
let failured_txn_info = format!( | ||
"due to {:?}, for account {}, max gas {}, payload {}", | ||
failure, | ||
first_failed_txn.sender(), | ||
first_failed_txn.max_gas_amount(), | ||
payload, | ||
); |
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.
The variable failured_txn_info
contains a typo - "failured" is not a valid English word. Consider renaming to failed_txn_info
for better readability. This change would need to be made in both the declaration and where it's used on line 536.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
2e28394
to
556c7c5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
556c7c5
to
5f0b217
Compare
let payload = match first_failed_txn.payload() { | ||
Script(_) => "script".to_string(), | ||
ModuleBundle(_) => "module_bundle".to_string(), | ||
EntryFunction(entry_function) => format!( | ||
"entry {}::{}", | ||
entry_function.module(), | ||
entry_function.function() | ||
), | ||
Multisig(_) => "multisig".to_string(), | ||
}; |
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.
The variable first_failed_txn
is undefined in this scope - this function receives a parameter named txn
. The match statement should use txn.payload()
instead of first_failed_txn.payload()
.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
9cb2c90
to
b71ac0e
Compare
This comment has been minimized.
This comment has been minimized.
❌ Forge suite
|
) { | ||
let handle = permissioned_signer::create_permissioned_handle(source); | ||
let permissioned_signer = permissioned_signer::signer_from_permissioned_handle(&handle); | ||
// public entry fun transfer_permissioned( |
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.
Are we deleting this because the forge upgrade didn't have the framework code locally just yet?
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.
no - because framework upgrade test issues transactions from framework_usecases module to test framework upgrade - but framework from previous release doesn't have it - so test fails
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b71ac0e
to
58b0c94
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
and remove test that uses new code - which fails framework upgrade.
Description
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist