Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,723 changes: 1,107 additions & 616 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ members = [
resolver = "2"

[workspace.dependencies]
soroban-sdk = { version = "21.7.0" }
soroban-sdk = { version = "26.0.0" }

[workspace.package]
rust-version = "1.78"
Expand Down
4 changes: 2 additions & 2 deletions contracts/my-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ crate-type = ["cdylib", "rlib"]
soroban-sdk = { workspace = true, features = ["testutils"] }

[dev-dependencies]
bolero = "0.10"
bolero-generator = "0.10"
bolero = "0.13"
bolero-generator = "0.13"

2 changes: 1 addition & 1 deletion contracts/reentrancy-guard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crate-type = ["rlib"]
soroban-sdk = { workspace = true }

[dev-dependencies]
criterion = "0.5.1"
criterion = "0.8.2"
soroban-sdk = { workspace = true, features = ["testutils"] }

[features]
Expand Down
4 changes: 1 addition & 3 deletions frontend/app/components/CallGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ interface LayoutNode extends CallGraphNode {
y: number;
}

function layoutNodes(nodes: CallGraphNode[]): LayoutNode[] {
function layoutNodes(nodes: CallGraphNode[] = []): LayoutNode[] {
if (!nodes || !Array.isArray(nodes)) {
return [];
}
function layoutNodes(nodes: CallGraphNode[] = []): LayoutNode[] {
if (!nodes) return [];
const functions = nodes.filter((n) => n.type === "function");
const storages = nodes.filter((n) => n.type === "storage");
const externals = nodes.filter((n) => n.type === "external");
Expand Down
10 changes: 8 additions & 2 deletions frontend/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ export default function DashboardPage() {

const currentReport = selectedContract?.report;

const { findings, callGraphNodes, callGraphEdges } = useMemo(() => {
if (!currentReport) return { findings: [], callGraphNodes: [], callGraphEdges: [] };
const { findings, nodes: callGraphNodes, edges: callGraphEdges } = useMemo(() => {
if (!currentReport) {
return {
findings: [] as ReturnType<typeof transformReport>,
nodes: [] as ReturnType<typeof extractCallGraph>["nodes"],
edges: [] as ReturnType<typeof extractCallGraph>["edges"],
};
}
const report = normalizeReport(currentReport);
return {
findings: transformReport(report),
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/lib/error-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ export function getErrorMessage(
return message(...Object.values(params || {}));
}

return message || "An error occurred.";
return typeof message === "string" ? message : "An error occurred.";
}
Loading
Loading