Add missing InstructionError::IllegalOwner conversion (#21524)
* Add missing InstructionError code * Add test that will fail on missing conversion * Move enum-iterator to dev-only
This commit is contained in:
@ -12,5 +12,13 @@ fn main() -> Result<(), std::io::Error> {
|
||||
.build_client(true)
|
||||
.build_server(false)
|
||||
.format(true)
|
||||
.type_attribute(
|
||||
"TransactionErrorType",
|
||||
"#[cfg_attr(test, derive(enum_iterator::IntoEnumIterator))]",
|
||||
)
|
||||
.type_attribute(
|
||||
"InstructionErrorType",
|
||||
"#[cfg_attr(test, derive(enum_iterator::IntoEnumIterator))]",
|
||||
)
|
||||
.compile(&protos, &[proto_base_path])
|
||||
}
|
||||
|
Reference in New Issue
Block a user