TransactionSEALED
@▫&▓■$▫◇!$▫?!$▫▪╱$?▓░█@□&╳#╳■$▫╲●▫▫@^▫^■$$$▒╱#@●▒%^&○╱□▪╲●●○!$╲@
Transaction ID
Execution Error
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 5eeb14adb82a41418dfa668d9ee66cbb7be96f4751af0392bf9264f91f54e938:9:4 | 9 | FlowtyRentals.settleRental(rentalResourceID: rentalResourceID) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> 5c57f79c6694797f.FlowtyRentals:1240:8 --> 5c57f79c6694797f.FlowtyRentals:892:39 --> 3cdbb3d569211ff3.FlowtyUtils:188:4 --> 473d6a2c37eab5be.LostAndFound:580:16 error: underflow --> 473d6a2c37eab5be.LostAndFound:558:66 Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.
Script Arguments
0rentalResourceIDUInt64
36283884969196
Cadence Script
1import FlowtyRentals from 0x5c57f79c6694797f
2
3transaction(rentalResourceID: UInt64) {
4 prepare(acct: auth(Storage) &Account) {
5 let mp = getAccount(0x5c57f79c6694797f).capabilities.get<&{FlowtyRentals.FlowtyRentalsMarketplacePublic}>(FlowtyRentals.FlowtyRentalsMarketplacePublicPath)!
6 .borrow()!
7 mp.borrowRental(rentalResourceID: rentalResourceID)
8 ?? panic("rental not found")
9 FlowtyRentals.settleRental(rentalResourceID: rentalResourceID)
10 }
11}