Fix contract upload txn ordering
The schema transactions have to go in first since the other smart
contracts will reference the state resulting from them.
@@ -90,6 +90,10 @@ pub fn setup_grid(
#[cfg(feature = "pike")]
make_pike_txns(&mut txns, &version, &signer)?;
+ // Make schema transactions
+ #[cfg(feature = "schema")]
+ make_schema_txns(&mut txns, &version, &signer)?;
+
// Make Product transactions
#[cfg(feature = "product")]
make_product_txns(&mut txns, &version, &signer)?;
@@ -98,10 +102,6 @@ pub fn setup_grid(
#[cfg(feature = "location")]
make_location_txns(&mut txns, &version, &signer)?;
- // Make schema transactions
- #[cfg(feature = "schema")]
- make_schema_txns(&mut txns, &version, &signer)?;
-
// Make Purchase Order transactions
#[cfg(feature = "purchase-order")]
make_purchase_order_txns(&mut txns, &version, &signer)?;
