StateDB store Idxs with TokenID at the db-key

This commit is contained in:
arnaucube
2020-10-27 15:55:28 +01:00
parent d6d1a9c898
commit aaa71a6b11
5 changed files with 43 additions and 23 deletions

View File

@@ -372,7 +372,7 @@ func (s *StateDB) CreateAccount(idx common.Idx, account *common.Account) (*merkl
return cpp, err
}
// store idx by EthAddr & BJJ
err = s.setIdxByEthAddrBJJ(idx, account.EthAddr, account.PublicKey)
err = s.setIdxByEthAddrBJJ(idx, account.EthAddr, account.PublicKey, account.TokenID)
return cpp, err
}