88 "github.com/lightningnetwork/lnd/fn"
99 "github.com/lightningnetwork/lnd/lnrpc"
1010 "github.com/lightningnetwork/lnd/lntypes"
11- "github.com/lightningnetwork/lnd/lnwire"
1211 "github.com/stretchr/testify/require"
1312)
1413
@@ -119,15 +118,15 @@ func TestAccountUpdateMethods(t *testing.T) {
119118 // Ensure that the function errors out if we try update an
120119 // account that does not exist.
121120 err := store .UpdateAccountBalanceAndExpiry (
122- ctx , AccountID {}, fn .None [lnwire. MilliSatoshi ](),
121+ ctx , AccountID {}, fn .None [int64 ](),
123122 fn .None [time.Time ](),
124123 )
125124 require .ErrorIs (t , err , ErrAccNotFound )
126125
127126 acct , err := store .NewAccount (ctx , 0 , time.Time {}, "foo" )
128127 require .NoError (t , err )
129128
130- assertBalanceAndExpiry := func (balance lnwire. MilliSatoshi ,
129+ assertBalanceAndExpiry := func (balance int64 ,
131130 expiry time.Time ) {
132131
133132 dbAcct , err := store .Account (ctx , acct .ID )
@@ -143,7 +142,7 @@ func TestAccountUpdateMethods(t *testing.T) {
143142 assertBalanceAndExpiry (0 , time.Time {})
144143
145144 // Now, update just the balance of the account.
146- newBalance := lnwire . MilliSatoshi (123 )
145+ newBalance := int64 (123 )
147146 err = store .UpdateAccountBalanceAndExpiry (
148147 ctx , acct .ID , fn .Some (newBalance ), fn .None [time.Time ](),
149148 )
@@ -153,8 +152,7 @@ func TestAccountUpdateMethods(t *testing.T) {
153152 // Now update just the expiry of the account.
154153 newExpiry := time .Now ().Add (time .Hour )
155154 err = store .UpdateAccountBalanceAndExpiry (
156- ctx , acct .ID , fn .None [lnwire.MilliSatoshi ](),
157- fn .Some (newExpiry ),
155+ ctx , acct .ID , fn .None [int64 ](), fn .Some (newExpiry ),
158156 )
159157 require .NoError (t , err )
160158 assertBalanceAndExpiry (newBalance , newExpiry )
@@ -171,8 +169,7 @@ func TestAccountUpdateMethods(t *testing.T) {
171169 // Finally, test an update that has no net changes to the
172170 // balance or expiry.
173171 err = store .UpdateAccountBalanceAndExpiry (
174- ctx , acct .ID , fn .None [lnwire.MilliSatoshi ](),
175- fn .None [time.Time ](),
172+ ctx , acct .ID , fn .None [int64 ](), fn .None [time.Time ](),
176173 )
177174 require .NoError (t , err )
178175 assertBalanceAndExpiry (newBalance , newExpiry )
0 commit comments