Skip to content

Commit

Permalink
adjust test to new scope of the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Oct 29, 2023
1 parent 7ab6d57 commit 7339665
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions starknet-providers/tests/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,15 +620,12 @@ async fn jsonrpc_call_entrypoint_not_found() {
match should_be_error {
Ok(_) => panic!("unexpected success result"),
Err(e) => match e {
ProviderError::StarknetError(StarknetErrorWithMessage { code, ref message }) => {
ProviderError::StarknetError(StarknetErrorWithMessage { code, .. }) => {
if let MaybeUnknownErrorCode::Known(sne) = code {
assert_eq!(sne, StarknetError::ContractError);
} else {
panic!("unexpected StarknetError {:?}", code);
}

assert!(!message.is_empty());
assert!(message.contains("Entry point EntryPointSelector(StarkFelt(\\\"0x03cf855c74a42fd097b17c8e32d22d463abd6e275cf10fbb682ad147f25641dc\\\")) not found in contract"));
}
_ => panic!("unexpected error type {:?}", e),
},
Expand Down

0 comments on commit 7339665

Please sign in to comment.