You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorMessage: "Amount is required for deposit for scheduled transaction with ID \(id)")
622
-
return
623
-
}
624
-
letvault = self.flowTokenVaultCapability.borrow()
625
-
if vault ==nil {
626
-
emitCOAHandlerExecutionError(id: id, owner: self.owner?.address, coaAddress: coa!.address().toString(), errorMessage: "FlowToken vault capability is invalid or expired for scheduled transaction with ID \(id)")
errorMessage: "Amount is required for deposit for scheduled transaction with ID \(id)")
623
+
return
624
+
}
625
+
letvault = self.flowTokenVaultCapability.borrow()
626
+
if vault ==nil {
627
+
emitCOAHandlerExecutionError(id: id, owner: self.owner?.address, coaAddress: coa!.address().toString(), errorMessage: "FlowToken vault capability is invalid or expired for scheduled transaction with ID \(id)")
assert(amount !=nil, message: "Amount is required for deposit but was not provided")
728
736
}
729
737
ifself.txType == COAHandlerTxType.WithdrawFLOW {
730
738
assert(amount !=nil, message: "Amount is required for withdrawal but was not provided")
731
739
}
732
740
ifself.txType == COAHandlerTxType.Call {
733
-
assert(callToEVMAddress !=nil, message: "Call to EVM address is required for EVM call but was not provided")
741
+
assert(callToEVMAddress !=nil&& callToEVMAddress!.length ==20, message: "Call to EVM address is required for EVM call but was not provided or is invalid")
734
742
assert(data !=nil, message: "Data is required for EVM call but was not provided")
735
743
assert(gasLimit !=nil, message: "Gas limit is required for EVM call but was not provided")
736
744
assert(value !=nil, message: "Value is required for EVM call but was not provided")
0 commit comments