-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a new token crashes the daemon #5724
Comments
|
I think this should fix it, although not sure why the diff --git a/src/lib/coda_base/sparse_ledger.ml b/src/lib/coda_base/sparse_ledger.ml
index e5e937d7a..171c901e1 100644
--- a/src/lib/coda_base/sparse_ledger.ml
+++ b/src/lib/coda_base/sparse_ledger.ml
@@ -134,9 +134,14 @@ let get_or_initialize_exn account_id t idx =
let account = get_exn t idx in
if Public_key.Compressed.(equal empty account.public_key) then
let public_key = Account_id.public_key account_id in
+ let delegate =
+ if Token_id.(equal default) (Account_id.token_id account_id) then
+ public_key
+ else Public_key.Compressed.empty
+ in
( `Added
, { account with
- delegate= public_key
+ delegate
; public_key
; token_id= Account_id.token_id account_id } )
else (`Existed, account) |
I don't think staged ledger tests include any of the token commands |
@MartinMinkov can you recheck this by running the tokens challenge when the new release branch is available? |
@aneesharaines I checked the tokens challenge yesterday while writing new token docs and I can confirm that the tokens challenge is successful and works as expected! |
I am using the rosetta container to build a local network to test the new CLI. I am building off the #5710 branch (it's now been merged.)
To start the network I'm running:
coda/src/app/rosetta/start.sh CURL
The daemon crashes when I issue:
./coda.exe client create-token -sender $CODA_PUBLIC_KEY1
coda_crash_report_2020-08-20_22-45-51.056911.tar.gz
The text was updated successfully, but these errors were encountered: