This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: contract class version mismatch format
commit-id:0f0f8dff
- Loading branch information
1 parent
aa12f22
commit 23a4c77
Showing
4 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use starknet_api::transaction::TransactionVersion; | ||
|
||
use crate::test_utils::CairoVersion; | ||
use crate::transaction::errors::TransactionExecutionError; | ||
|
||
#[test] | ||
fn test_contract_class_version_mismatch() { | ||
let error = TransactionExecutionError::ContractClassVersionMismatch { | ||
declare_version: TransactionVersion::ONE, | ||
cairo_version: CairoVersion::Cairo0, | ||
}; | ||
assert_eq!( | ||
error.to_string(), | ||
"Declare transaction version 1 must have a contract class of Cairo version Cairo0." | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters