From 142d658821bb918e993f874d8bc1758f3a7e5479 Mon Sep 17 00:00:00 2001 From: Matt Mead Date: Thu, 15 Jul 2021 08:27:24 -0700 Subject: [PATCH] Update eosio.token.hpp Typo in documentation. `maximum_supply` is uint64_t cast into `asset` which is int64_t, thus 2^62 - 1. Documentation said 1^62 - 1. --- contracts/eosio.token/include/eosio.token/eosio.token.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/eosio.token/include/eosio.token/eosio.token.hpp b/contracts/eosio.token/include/eosio.token/eosio.token.hpp index 050a685b5..2c28d6284 100644 --- a/contracts/eosio.token/include/eosio.token/eosio.token.hpp +++ b/contracts/eosio.token/include/eosio.token/eosio.token.hpp @@ -34,7 +34,7 @@ namespace eosio { * * @pre Token symbol has to be valid, * @pre Token symbol must not be already created, - * @pre maximum_supply has to be smaller than the maximum supply allowed by the system: 1^62 - 1. + * @pre maximum_supply has to be smaller than the maximum supply allowed by the system: 2^62 - 1 (uint64_t cast into int64_t). * @pre Maximum supply must be positive; */ [[eosio::action]]