Tokens are unsigned
This commit is contained in:
parent
f0d24a68ee
commit
ec0a56cb9c
|
@ -111,7 +111,7 @@ SOL_FN_PREFIX bool SolPubkey_same(const SolPubkey *one, const SolPubkey *two) {
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SolPubkey *key; /** Public Key of the account */
|
SolPubkey *key; /** Public Key of the account */
|
||||||
int64_t *tokens; /** Numer of tokens owned by this account */
|
uint64_t *tokens; /** Numer of tokens owned by this account */
|
||||||
uint64_t userdata_len; /** Length of userdata in bytes */
|
uint64_t userdata_len; /** Length of userdata in bytes */
|
||||||
uint8_t *userdata; /** On-chain data owned by this account */
|
uint8_t *userdata; /** On-chain data owned by this account */
|
||||||
SolPubkey *owner; /** Program that owns this account */
|
SolPubkey *owner; /** Program that owns this account */
|
||||||
|
@ -247,8 +247,8 @@ SOL_FN_PREFIX bool sol_deserialize(
|
||||||
input += sizeof(SolPubkey);
|
input += sizeof(SolPubkey);
|
||||||
|
|
||||||
// tokens
|
// tokens
|
||||||
ka[i].tokens = (int64_t *) input;
|
ka[i].tokens = (uint64_t *) input;
|
||||||
input += sizeof(int64_t);
|
input += sizeof(uint64_t);
|
||||||
|
|
||||||
// account userdata
|
// account userdata
|
||||||
ka[i].userdata_len = *(uint64_t *) input;
|
ka[i].userdata_len = *(uint64_t *) input;
|
||||||
|
|
Loading…
Reference in New Issue