Skip to content

Commit

Permalink
[sky] refs #279 - Test there is no fee in Sky
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed Jan 7, 2020
1 parent 0cb3895 commit aef8226
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/coin/skycoin/models/coin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,10 @@ func TestPendingTxnStatus(t *testing.T) {
var pendTxn = new(SkycoinPendingTransaction)
require.Equal(t, core.TXN_STATUS_PENDING, pendTxn.GetStatus())
}

func TestPendingTxnFee(t *testing.T) {
var pendTxn = new(SkycoinPendingTransaction)
fee, err := pendTxn.ComputeFee(Sky)
require.NoError(t, err)
require.Equal(t, uint64(0), fee)
}

0 comments on commit aef8226

Please sign in to comment.