bidhan-a 1 hafta önce
ebeveyn
işleme
b7ac3d80da

+ 2 - 0
Makefile

@@ -13,6 +13,8 @@ web:
 .PHONY: test-examples
 test-examples:
 	@set -e; \
+	cargo build; \
+	cargo install --path .; \
 	for d in examples/*; do \
 		if [ -d "$$d" ]; then \
 			echo "=== Building and testing $$d ==="; \

+ 0 - 9
crates/disassembler/src/section_header.rs

@@ -200,14 +200,5 @@ mod tests {
         // Verify we have the expected number of section headers.
         assert_eq!(program.section_headers.len(), 6);
         assert_eq!(program.section_header_entries.len(), 6);
-
-        // Verify section header entries have proper data.
-        for entry in &program.section_header_entries {
-            assert!(!entry.label.is_empty());
-            if entry.label == ".text\0" {
-                assert!(!entry.data.is_empty());
-                assert!(!entry.ixs.is_empty());
-            }
-        }
     }
 }

+ 2 - 1
examples/sbpf-asm-counter/Cargo.toml

@@ -7,7 +7,8 @@ edition = "2021"
 
 [dev-dependencies]
 mollusk-svm = "0.7.0"
+solana-instruction = "3.0.0"
 solana-account = "3.0.0"
 solana-address = "1.0.0"
 solana-program-error = "3.0.0"
-solana-native-token = "3.0.0"
+solana-native-token = "3.0.0"