Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Oct 29, 2024
1 parent 1ab58f2 commit 9d157bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AAADAAAAAAAAAEBCDwAAAAAAgE08AAAAAADAJh4AAAAAAAAAAAAAAAAAIOrjkZAn7XCCmrYeV5FY1h8Qwc2PmKwuvMs/dTkbKtmTAQAAAAAAAiCWPACmeHYzWNdw8Ug2nmoZwl7EmkW8V+oxKTWVbwg5yiCo7vWKhdFVfDBrhPNL/dm8lEUakRX2mo7pCM88f1cyXgMAAAAAAAAABA0rm7unaqByv19SmTZUrEy3iuEr8ukanp4FrDMN6EfZAQIAAAAAAAAAIJWu62cTMqk+i1lFBl0iun+3KOQw7XAgDK+RqZSzaqt7AJk4yU9BGBU7vtCPFK504lVxclQvWb8LejBumdWgsIluASAlJdo1uqyLc5uH9KnW75V5bwhf33YlKxtSVdDDdKXm3gCZOMlPQRgVO77QjxSudOJVcXJUL1m/C3owbpnVoLCJbgA1pUMbk/MztWrX2Wa7iRXtR4ecZX8BcbvXc5MqIUEsbAECAAAAAAAAACAknN02wZZXy0Vt2HVbsGCwEfdCPTkhkY6rbsZe6CSglAC3nqEtCu8+wgTryseqZkghMId1VZVPgf5oS762Sf9SOwEg0jgoqZhslHjFBmrZYP3c48gRPyGLWitsZ4gjk4yV4i4At56hLQrvPsIE68rHqmZIITCHdVWVT4H+aEu+tkn/UjsATTNeZ5wwmp9/+V0eh+RjzaMQhicyggV0NkUuGpSA2WMAASAjU2eF/7mEyaUbPMsXC77uMKQoXswLmwwxXwDfX/6fwAARERERFQTpNQ5jXWXNOMzSwClDTGo6SA2JR6m6ahWyFQHFTwjk5nvh3VJK+l8LTEI2uQdL1pdHUqJEocE6eeRZ5wABIDemFa4c2TycELxsMrtzDbLu2v5NV0U8Ut+xAuiwFAntAKGpfSC7rXnirInyFaOzxPL/mhqjzCblKb3m57xVANYQAQAA
5 changes: 3 additions & 2 deletions crates/iota-rust-sdk/src/types/effects/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ mod serialization {

#[test]
fn effects_fixtures() {
// The files contain the bas64 encoded raw effects of transactions
const GENESIS_EFFECTS: &str = include_str!("fixtures/genesis-transaction-effects");
const PYTH_WORMHOLE_V2: &str = include_str!("fixtures/pyth-wormhole-v2");
const SPONSOR_TX_EFFECTS: &str = include_str!("fixtures/sponsor-tx-effects");

for fixture in [GENESIS_EFFECTS, PYTH_WORMHOLE_V2] {
for fixture in [GENESIS_EFFECTS, SPONSOR_TX_EFFECTS] {
let fixture = Base64::decode_vec(fixture.trim()).unwrap();
let fx: TransactionEffects = bcs::from_bytes(&fixture).unwrap();
assert_eq!(bcs::to_bytes(&fx).unwrap(), fixture);
Expand Down
2 changes: 0 additions & 2 deletions crates/iota-rust-sdk/src/types/serialization_proptests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,8 @@ serialization_test!(TransactionEventsDigest);
serialization_test!(ChangedObject);
serialization_test!(EffectsObjectChange);
serialization_test!(IdOperation);
serialization_test!(ModifiedAtVersion);
serialization_test!(ObjectIn);
serialization_test!(ObjectOut);
serialization_test!(ObjectReferenceWithOwner);
serialization_test!(TransactionEffects);
serialization_test!(TransactionEffectsV1);
serialization_test!(UnchangedSharedKind);
Expand Down

0 comments on commit 9d157bb

Please sign in to comment.