Invariants & random Msgs in progress

This commit is contained in:
Christopher Goes
2018-07-11 02:36:50 +02:00
parent a33229380b
commit 940cfa98af
3 changed files with 148 additions and 7 deletions
+5 -1
View File
@@ -15,9 +15,13 @@ type Coin struct {
}
func NewCoin(denom string, amount int64) Coin {
return NewIntCoin(denom, NewInt(amount))
}
func NewIntCoin(denom string, amount Int) Coin {
return Coin{
Denom: denom,
Amount: NewInt(amount),
Amount: amount,
}
}