Skip to content

Commit 3e91944

Browse files
committed
Update changes in the scheduled contract
1 parent 12a1c88 commit 3e91944

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

engine/execution/computation/computer/computer_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ func (executor *callbackTestExecutor) Output() fvm.ProcedureOutput {
16361636

16371637
switch {
16381638
// scheduled callbacks process transaction
1639-
case strings.Contains(string(txBody.Script), "CallbackScheduler.process"):
1639+
case strings.Contains(string(txBody.Script), "scheduler.process"):
16401640
executor.vm.executedTransactions[txID] = "process_callback"
16411641
env := systemcontracts.SystemContractsForChain(flow.Mainnet.Chain().ChainID()).AsTemplateEnv()
16421642
eventTypeString := fmt.Sprintf("A.%v.CallbackScheduler.CallbackProcessed", env.FlowCallbackSchedulerAddress)
@@ -1646,8 +1646,9 @@ func (executor *callbackTestExecutor) Output() fvm.ProcedureOutput {
16461646
for i, payload := range executor.vm.eventPayloads {
16471647
events[i] = flow.Event{
16481648
// TODO: we shouldn't hardcode this event types, refactor after the scheduler contract is done
1649-
Type: flow.EventType(eventTypeString),
1650-
TransactionID: txProc.ID,
1649+
Type: flow.EventType(eventTypeString),
1650+
TransactionID: txProc.ID,
1651+
16511652
TransactionIndex: txProc.TxIndex,
16521653
EventIndex: uint32(i),
16531654
Payload: payload,
@@ -1658,7 +1659,7 @@ func (executor *callbackTestExecutor) Output() fvm.ProcedureOutput {
16581659
Events: events,
16591660
}
16601661
// scheduled callbacks execute transaction
1661-
case strings.Contains(string(txBody.Script), "CallbackScheduler.executeCallback"):
1662+
case strings.Contains(string(txBody.Script), "scheduler.executeCallback"):
16621663
// extract the callback ID from the arguments
16631664
if len(txBody.Arguments) == 0 {
16641665
return fvm.ProcedureOutput{}

0 commit comments

Comments
 (0)