Skip to content

Conversation

vishalchangrani
Copy link
Contributor

@vishalchangrani vishalchangrani commented Aug 28, 2025

I got this error when running this transaction:

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: incorrect argument label
  --> 84ac9995660efdc8e5c87000a9ce7e8dd20e1c713753e50356adf0dd20ec4091:12:46
   |
12 | 		self.flowFeesAccountAdmin.setFeeSurgeFactor(surgeFactor: surgeFactor)
   | 		                                            ^^^^^^^^^^^^ expected no label, got `surgeFactor`

This works:

self.flowFeesAccountAdmin.setFeeSurgeFactor(surgeFactor)

And fails later as expected since I am using an incorrect account.

@@ -9,6 +9,6 @@ transaction(surgeFactor: UFix64) {
?? panic("Unable to borrow reference to administrator resource")
}
execute {
self.flowFeesAccountAdmin.setFeeSurgeFactor(surgeFactor: surgeFactor)
self.flowFeesAccountAdmin.setFeeSurgeFactor(surgeFactor)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

label not needed:

access(all) fun setFeeSurgeFactor(_ surgeFactor: UFix64) {

@joshuahannan
Copy link
Member

Lets wait to merge this until we merge #489. I selfishly don't want to deal with the conflicts. 😆

@vishalchangrani vishalchangrani merged commit 7ae589d into master Aug 29, 2025
2 checks passed
@vishalchangrani vishalchangrani deleted the vishal/fix_setFeeSurgeFactor branch August 29, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants