Flow price: --
5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f

Transaction

Hash: 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: error getting program 129fee333390875e.EmeraldBotVerifiers: failed to derive value: load program failed: Parsing failed:
error: `pub` is no longer a valid access keyword
 --> :1:0
  |
1 | pub contract EmeraldBotVerifiers {
  | ^^^

error: `pub` is no longer a valid access keyword
 --> :3:4
  |
3 |     pub let VerifierCollectionStoragePath: StoragePath
  |     ^^^

error: `pub` is no longer a valid access keyword
 --> :4:4
  |
4 |     pub let VerifierCollectionPublicPath: PublicPath
  |     ^^^

error: `pub` is no longer a valid access keyword
 --> :5:4
  |
5 |     pub let VerifierCollectionPrivatePath: PrivatePath
  |     ^^^

error: `pub` is no longer a valid access keyword
 --> :7:4
  |
7 |     pub event ContractInitialized()
  |     ^^^

error: `pub` is no longer a valid access keyword
 --> :9:4
  |
9 |     pub event VerifierCreated(verifierId: UInt64, name: String, mode: UInt8, guildId: String, roleIds: [String])
  |     ^^^

error: `pub` is no longer a valid access keyword
  --> :10:4
   |
10 |     pub event VerifierDeleted(verifierId: UInt64)
   |     ^^^

error: `pub` is no longer a valid access keyword
  --> :12:4
   |
12 |     pub enum VerificationMode: UInt8 {
   |     ^^^

error: `pub` is no longer a valid access keyword
  --> :13:8
   |
13 |         pub case Normal
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :14:8
   |
14 |         pub case ShortCircuit
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :17:4
   |
17 |     pub resource Verifier {
   |     ^^^

error: `pub` is no longer a valid access keyword
  --> :18:8
   |
18 |         pub let name: String
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :19:8
   |
19 |         pub let description: String
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :20:8
   |
20 |         pub let image: String
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :21:8
   |
21 |         pub let scriptCode: String
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :22:8
   |
22 |         pub let guildId: String
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :23:8
   |
23 |         pub let roleIds: [String]
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :24:8
   |
24 |         pub let verificationMode: VerificationMode
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :25:8
   |
25 |         pub let extra: {String: AnyStruct}
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :26:8
   |
26 |         pub let version: UInt64
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :50:4
   |
50 |     pub resource interface VerifierCollectionPublic {
   |     ^^^

error: `pub` is no longer a valid access keyword
  --> :51:8
   |
51 |         pub fun getVerifierIds(): [UInt64]
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :52:8
   |
52 |         pub fun getVerifier(verifierId: UInt64): &Verifier?
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :53:8
   |
53 |         pub fun getVerifiersByGuildId(guildId: String): [&Verifier?]
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :56:4
   |
56 |     pub resource VerifierCollection: VerifierCollectionPublic {
   |     ^^^

error: `pub` is no longer a valid access keyword
  --> :57:8
   |
57 |         pub let verifiers: @{UInt64: Verifier}
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :59:8
   |
59 |         pub fun addVerifier(
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :83:8
   |
83 |         pub fun deleteVerifier(verifierId: UInt64) {
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :88:8
   |
88 |         pub fun getVerifierIds(): [UInt64] {
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :92:8
   |
92 |         pub fun getVerifier(verifierId: UInt64): &Verifier? {
   |         ^^^

error: `pub` is no longer a valid access keyword
  --> :96:8
   |
96 |         pub fun getVerifiersByGuildId(guildId: String): [&Verifier?] {
   |         ^^^

error: custom destructor definitions are no longer permitted
   --> :112:8
    |
112 |         destroy() {
    |         ^ remove the destructor definition

error: `pub` is no longer a valid access keyword
   --> :117:4
    |
117 |     pub fun createEmptyCollection(): @VerifierCollection {
    |     ^^^

--> 129fee333390875e.EmeraldBotVerifiers

error: cannot find type in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:13:29
   |
13 |     let verifierCollection: &EmeraldBotVerifiers.VerifierCollection
   |                              ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find type in this scope: `AuthAccount`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:15:20
   |
15 |     prepare(signer: AuthAccount) {
   |                     ^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:16:72
   |
16 |         if signer.borrow<&EmeraldBotVerifiers.VerifierCollection>(from: EmeraldBotVerifiers.VerifierCollectionStoragePath) == nil {
   |                                                                         ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:17:27
   |
17 |             signer.save(<- EmeraldBotVerifiers.createEmptyCollection(), to: EmeraldBotVerifiers.VerifierCollectionStoragePath)
   |                            ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:17:76
   |
17 |             signer.save(<- EmeraldBotVerifiers.createEmptyCollection(), to: EmeraldBotVerifiers.VerifierCollectionStoragePath)
   |                                                                             ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:19:16
   |
19 |                 EmeraldBotVerifiers.VerifierCollectionPublicPath, 
   |                 ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:20:24
   |
20 |                 target: EmeraldBotVerifiers.VerifierCollectionStoragePath
   |                         ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:24:95
   |
24 |         self.verifierCollection = signer.borrow<&EmeraldBotVerifiers.VerifierCollection>(from: EmeraldBotVerifiers.VerifierCollectionStoragePath)
   |                                                                                                ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `EmeraldBotVerifiers`
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:29:31
   |
29 |         let verificationMode = EmeraldBotVerifiers.VerificationMode(rawValue: rawVerificationMode) 
   |                                ^^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot infer type: requires an explicit type annotation
  --> 5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f:40:19
   |
40 |             extra: {}
   |                    ^


Hash:
5fec96c3f9c5670de278eb6871e97f5b9e0995e1594cc4b9c57d6e89ea7eed5f
Status:
ERROR
Block height:
88901826
Block id:
cbca390fa5b42aa88b9b1fa331075c3032b5d45ac9fb299e6565bf8838133ea5
Timestamp:
Wednesday 2 October 2024 at 01:43:59 UTC
()
Proposer:
Authorizers: