Browse Source

Exclude DECIMALS

Michael Vines 5 years ago
parent
commit
7b8c165db6
2 changed files with 1 additions and 5 deletions
  1. 1 0
      program/build.rs
  2. 0 5
      program/inc/token.h

+ 1 - 0
program/build.rs

@@ -47,6 +47,7 @@ fn main() {
                 "Account".to_string(),
                 "Multisig".to_string(),
             ],
+            exclude: vec!["DECIMALS".to_string()],
             ..cbindgen::ExportConfig::default()
         },
         parse: cbindgen::ParseConfig {

+ 0 - 5
program/inc/token.h

@@ -11,11 +11,6 @@
 #define TOKEN_MINOR_VERSION 0
 #define TOKEN_PATCH_VERSION 7
 
-/**
- * There are 10^9 lamports in one SOL
- */
-#define Token_DECIMALS 9
-
 /**
  * Maximum number of multisignature signers (max N)
  */