Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed Oct 3, 2024
1 parent 9295804 commit f286010
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/go/templates/internal/assets/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/go/templates/manifest.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
{
"id": "FA.03",
"name": "Remove Key",
"source": "transaction(keyIndex: Int) {\n\tprepare(signer: auth(RevokeKey) \u0026Account) {\n\t\tif let key = signer.keys.get(keyIndex: keyIndex) {\n\t\t\tsigner.keys.revoke(keyIndex: keyIndex)\n\t\t} else {\n\t\t\tpanic(\"Cannot revoke key: No key with the index \"\n .concat(keyIndex.toString())\n .concat(\" exists on the authorizer's account.\"))\n\t\t}\n\t}\n}",
"source": "transaction(keyIndex: Int) {\n\tprepare(signer: auth(RevokeKey) \u0026Account) {\n\t\tif let key = signer.keys.get(keyIndex: keyIndex) {\n\t\t\tsigner.keys.revoke(keyIndex: keyIndex)\n\t\t} else {\n panic(\"Cannot revoke key: No key with the index \"\n .concat(keyIndex.toString())\n .concat(\" exists on the authorizer's account.\"))\n\t\t}\n\t}\n}",
"arguments": [
{
"type": "Int",
Expand All @@ -125,7 +125,7 @@
}
],
"network": "mainnet",
"hash": "da9592887d9329123c89cccc0d15eff1de8609911aa8f237229bff3f6de7cd25"
"hash": "69409133294a24bc167375f47043604676b7fdf1dde9396540c13ff540aa9288"
},
{
"id": "FT.01",
Expand Down
4 changes: 2 additions & 2 deletions lib/go/templates/manifest.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
{
"id": "FA.03",
"name": "Remove Key",
"source": "transaction(keyIndex: Int) {\n\tprepare(signer: auth(RevokeKey) \u0026Account) {\n\t\tif let key = signer.keys.get(keyIndex: keyIndex) {\n\t\t\tsigner.keys.revoke(keyIndex: keyIndex)\n\t\t} else {\n\t\t\tpanic(\"Cannot revoke key: No key with the index \"\n .concat(keyIndex.toString())\n .concat(\" exists on the authorizer's account.\"))\n\t\t}\n\t}\n}",
"source": "transaction(keyIndex: Int) {\n\tprepare(signer: auth(RevokeKey) \u0026Account) {\n\t\tif let key = signer.keys.get(keyIndex: keyIndex) {\n\t\t\tsigner.keys.revoke(keyIndex: keyIndex)\n\t\t} else {\n panic(\"Cannot revoke key: No key with the index \"\n .concat(keyIndex.toString())\n .concat(\" exists on the authorizer's account.\"))\n\t\t}\n\t}\n}",
"arguments": [
{
"type": "Int",
Expand All @@ -125,7 +125,7 @@
}
],
"network": "testnet",
"hash": "da9592887d9329123c89cccc0d15eff1de8609911aa8f237229bff3f6de7cd25"
"hash": "69409133294a24bc167375f47043604676b7fdf1dde9396540c13ff540aa9288"
},
{
"id": "FT.01",
Expand Down
6 changes: 3 additions & 3 deletions transactions/accounts/revoke_key.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ transaction(keyIndex: Int) {
if let key = signer.keys.get(keyIndex: keyIndex) {
signer.keys.revoke(keyIndex: keyIndex)
} else {
panic("Cannot revoke key: No key with the index "
.concat(keyIndex.toString())
.concat(" exists on the authorizer's account."))
panic("Cannot revoke key: No key with the index "
.concat(keyIndex.toString())
.concat(" exists on the authorizer's account."))
}
}
}

0 comments on commit f286010

Please sign in to comment.