CODE_ERROR
There is an error in the cadence code of this transaction.
[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` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:13:29 | 13 | let verifierCollection: &EmeraldBotVerifiers.VerifierCollection | ^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `AuthAccount` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:15:20 | 15 | prepare(signer: AuthAccount) { | ^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `EmeraldBotVerifiers` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97: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` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:17:27 | 17 | signer.save(<- EmeraldBotVerifiers.createEmptyCollection(), to: EmeraldBotVerifiers.VerifierCollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `EmeraldBotVerifiers` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:17:76 | 17 | signer.save(<- EmeraldBotVerifiers.createEmptyCollection(), to: EmeraldBotVerifiers.VerifierCollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `EmeraldBotVerifiers` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:19:16 | 19 | EmeraldBotVerifiers.VerifierCollectionPublicPath, | ^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `EmeraldBotVerifiers` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:20:24 | 20 | target: EmeraldBotVerifiers.VerifierCollectionStoragePath | ^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `EmeraldBotVerifiers` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97: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` --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:29:31 | 29 | let verificationMode = EmeraldBotVerifiers.VerificationMode(rawValue: rawVerificationMode) | ^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type: requires an explicit type annotation --> a9beb4e770ea7f47bd8d1679099c58bd5c2695830a3e5b5e656e181baf2a0b97:40:19 | 40 | extra: {} | ^Arguments:
name:
New Member
description:
A new member of the Dope Prompts Social Club
image:
Empty
scriptCode:
import EmeraldIde... return response }
guildId:
939335240013467658
roleIds:
["1165518506750656633"]
rawVerificationMode:
1
Loading...