smartcontractkit / near-protocol-contracts

MIT License
26 stars 8 forks source link

Nonce is serialized as string instead of number #14

Open krebernisak opened 4 years ago

krebernisak commented 4 years ago

The nonce is defined as u128, but the result for get_requests or get_all_requests serializes it as a string:

 [{"nonce":"1","request":{"caller_account":"client.oracle.testnet","request_spec":"dW5pcXVlIHNwZWMgaWQ=","callback_address":"client.oracle.testnet","callback_method":"token_price_callback","data":"QkFU","payment":10,"expiration":1906293427246306700}},{"nonce":"2","request":{"caller_account":"client.oracle.testnet","request_spec":"dW5pcXVlIHNwZWMgaWQ=","callback_address":"client.oracle.testnet","callback_method":"token_price_callback","data":"TkVBUg==","payment":10,"expiration":1906293427246306700}}]