Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkySnow committed Mar 22, 2024
1 parent b21d8d8 commit 14be88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions sgxvm/src/precompiles/secp256r1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ mod tests {
assert_eq!(res[0], 0u8);
assert_eq!(res[1], 0u8);
assert_eq!(res[2], 0u8);
assert_eq!(res[31], 0u8);
assert_eq!(res[31], 1u8);
}

}
6 changes: 3 additions & 3 deletions tests/solidity/contracts/RIP7212.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ contract RIP7212 {
}

// Decode the result
bool result = abi.decode(data, (bool));
uint256 result = abi.decode(data, (uint256));

// Check it's 0 (valid signature)
return result;
// Check it's 1 (valid signature)
return result == uint256(1);
}
}

0 comments on commit 14be88e

Please sign in to comment.