Skip to content

Commit

Permalink
Merge pull request ethereum#76 from terenc3t/fix-deposit-size
Browse files Browse the repository at this point in the history
fixed print statement of deposit size from wei to ether
  • Loading branch information
terencechain authored Mar 22, 2018
2 parents 8ecd6bf + acae186 commit 6993b27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sharding/smc.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/sharding/contracts"
)

Expand Down Expand Up @@ -68,7 +69,7 @@ func joinCollatorPool(c *collatorClient) error {
if err != nil {
return fmt.Errorf("unable to deposit eth and become a collator: %v", err)
}
log.Info(fmt.Sprintf("Deposited %dETH into contract with transaction hash: %s", depositSize, tx.Hash().String()))
log.Info(fmt.Sprintf("Deposited %dETH into contract with transaction hash: %s", new(big.Int).Div(depositSize, big.NewInt(params.Ether)), tx.Hash().String()))

} else {
log.Info("Not joining collator pool")
Expand Down

0 comments on commit 6993b27

Please sign in to comment.