mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Add tx generation lang interpreter
This commit is contained in:
@@ -71,7 +71,7 @@ func (l *Account) BigInts() ([NLEAFELEMS]*big.Int, error) {
|
||||
// HashValue returns the value of the Account, which is the Poseidon hash of its *big.Int representation
|
||||
func (l *Account) HashValue() (*big.Int, error) {
|
||||
b0 := big.NewInt(0)
|
||||
toHash := [poseidon.T]*big.Int{b0, b0, b0, b0, b0, b0}
|
||||
toHash := []*big.Int{b0, b0, b0, b0, b0, b0}
|
||||
lBI, err := l.BigInts()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -106,7 +106,7 @@ func TestAccountHashValue(t *testing.T) {
|
||||
|
||||
v, err := account.HashValue()
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, "6335844662301214382338419199835935731871537354006112711277201708185593574314", v.String())
|
||||
assert.Equal(t, "16085711911723375585301279875451049849443101031421093098714359651259271023730", v.String())
|
||||
}
|
||||
|
||||
func TestAccountErrNotInFF(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user