We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8faef commit 0f92c10Copy full SHA for 0f92c10
src/experimental.rs
@@ -0,0 +1,18 @@
1
+//! Experimental methods.
2
+
3
+use super::*;
4
5
+mod native {
6
+ extern "C" {
7
+ pub fn experimental_isAccountEmpty(addressOffset: *const u32) -> u32;
8
+ }
9
+}
10
11
+pub fn is_account_empty(address: &Address) -> bool {
12
+ let ret = unsafe { native::experimental_isAccountEmpty(address.bytes.as_ptr() as *const u32) };
13
+ if ret != 0 && ret != 1 {
14
+ panic!();
15
16
17
+ ret == 1
18
src/lib.rs
@@ -33,6 +33,7 @@ pub mod debug;
33
34
#[cfg(feature = "experimental")]
35
pub mod bignum;
36
+pub mod experimental;
37
38
#[cfg(not(feature = "std"))]
39
pub mod convert;
0 commit comments