Skip to content

Commit 9c95be4

Browse files
committed
fix callback with uniqueID not uuid
1 parent 7b23781 commit 9c95be4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cadence/contracts/interfaces/DeFiActions.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ access(all) contract DeFiActions {
10791079
if let cap = self._executionCallback {
10801080
if cap.check() {
10811081
if let callback = cap.borrow() {
1082-
callback.onExecuted(balancerUUID: self.uuid)
1082+
callback.onExecuted(balancerUUID: self.uniqueID?.id ?? 0)
10831083
}
10841084
}
10851085
}

cadence/tests/AutoBalancer_test.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ access(all) fun test_ExecutionCallbackRuns() {
188188
let createdEvts = Test.eventsOfType(Type<DeFiActions.CreatedAutoBalancer>())
189189
Test.assertEqual(1, createdEvts.length)
190190
let createdEvt = createdEvts[0] as! DeFiActions.CreatedAutoBalancer
191-
let balancerUUID = createdEvt.uuid
191+
let balancerUUID = createdEvt.uniqueID ?? 0
192192

193193
let interval: UInt64 = 10
194194
let executionEffort: UInt64 = 1_000

0 commit comments

Comments
 (0)