Contracts build risc-v fixtures (#2554)

Follow up from #2347 this time to verify that fixtures build to RISC-V

---------

Co-authored-by: alvicsam <alvicsam@gmail.com>
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
PG Herveou
2024-01-04 15:49:42 +01:00
committed by GitHub
parent 6f9b1f61ec
commit f82c297728
14 changed files with 647 additions and 150 deletions
+1 -2
View File
@@ -35,7 +35,7 @@ macro_rules! define_error_codes {
)*
) => {
/// Every error that can be returned to a contract when it calls any of the host functions.
#[derive(Debug)]
#[derive(Debug, PartialEq, Eq)]
#[repr(u32)]
pub enum ReturnErrorCode {
/// API call successful.
@@ -49,7 +49,6 @@ macro_rules! define_error_codes {
}
impl From<ReturnCode> for Result {
#[inline]
fn from(return_code: ReturnCode) -> Self {
match return_code.0 {
0 => Ok(()),