Skip to content

Commit

Permalink
fix unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ridev6 committed Aug 8, 2023
1 parent 0a142ef commit 678d3ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ride/boosting.ride
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,9 @@ func claimWxBoostREADONLY(lpAssetIdStr: String, userAddressStr: String) = {
}

@Callable(i)
func unlock(userAddressStr: String, txIdStr: String, amount: Int) = {
let userAddress = userAddressStr.addressFromString()
.valueOrErrorMessage(wrapErr("invalid user address"))
func unlock(txIdStr: String, amount: Int) = {
let userAddress = i.caller
let userAddressStr = userAddress.toString()
let txId = txIdStr.fromBase58String()
let userRecordArray = readLockParamsRecordOrFail(
userAddress,
Expand Down

0 comments on commit 678d3ab

Please sign in to comment.