Sequencer reports that a bridge lock action failed even though it was checking a bridge unlock action.
The error message should be fixed. To not let this happen in the future: 1. Can the boiler plate also be replaced by a macro? And 2: can we make use of astria_core::Protobuf::full_name() to print the name of the failed action?
|
Action::BridgeLock(act) => act |
|
.check_stateless() |
|
.await |
|
.context("stateless check failed for BridgeLockAction")?, |
|
Action::BridgeUnlock(act) => act |
|
.check_stateless() |
|
.await |
|
.context("stateless check failed for BridgeLockAction")?, |
┆Issue Number: ENG-800
Sequencer reports that a bridge lock action failed even though it was checking a bridge unlock action.
The error message should be fixed. To not let this happen in the future: 1. Can the boiler plate also be replaced by a macro? And 2: can we make use of
astria_core::Protobuf::full_name()to print the name of the failed action?astria/crates/astria-sequencer/src/transaction/mod.rs
Lines 130 to 137 in f46d7f5
┆Issue Number: ENG-800