From e77c53c8537897b1029a6fab7b75e753ae3e35f1 Mon Sep 17 00:00:00 2001 From: blockiosaurus Date: Sat, 17 Feb 2024 14:26:45 -0700 Subject: [PATCH] Adding DataBlob trait. --- programs/mpl-asset/src/utils.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 programs/mpl-asset/src/utils.rs diff --git a/programs/mpl-asset/src/utils.rs b/programs/mpl-asset/src/utils.rs new file mode 100644 index 00000000..e829d81a --- /dev/null +++ b/programs/mpl-asset/src/utils.rs @@ -0,0 +1,4 @@ +pub trait DataBlob { + fn get_initial_size() -> usize; + fn get_size(&self) -> usize; +}