Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to declare contracts through Braavos. #245

Open
wufengtao1 opened this issue Mar 14, 2024 · 4 comments
Open

Unable to declare contracts through Braavos. #245

wufengtao1 opened this issue Mar 14, 2024 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed ODHack Issues are part of the HackODFest and the contributors will be rewarded during the hackathon period

Comments

@wufengtao1
Copy link

Describe the bug
Unable to declare contracts through Braavos. Error occurred.

To Reproduce
Steps to reproduce the behavior:
Use default Starknet plugin [Hello world template]

  1. Set Scrab.toml
    [dependencies]
    starknet = "2.5.4"
    and Cario version v2.5.4
  2. Connect Braavos [Starknet Goerli or Sepolia]
  3. Compilation successful
  4. Declare failed
    image
    Err:
RPC: starknet_estimateFee with params {
  "request": [
    {
      "type": "DECLARE",
      "contract_class": {
        "sierra_program": [
          "0x1",
          "0x4",
          "0x0",
          "0x2",
          "0x5",
          "0x4",
          "0xea",
          "0x16",
          "0x21",
          "0x52616e6765436865636b",
          "0x800000000000000100000000000000000000000000000000",
          "0x537472756374",
          "0x800000000000000f00000000000000000000000000000001",
          "0x0",
          "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3",
          "0x800000000000000f00000000000000000000000000000002",
          "0x1",
          "0x16a4c8d7c05909052238a862d8cc3e7975bf05a07b3a69c6b28951083a6d672",
          "0x4172726179",
          "0x800000000000000300000000000000000000000000000001",
          "0x1f",
          "0x800000000000000300000000000000000000000000000003",
          "0x3",
          "0x4",
          "0x456e756d",
          "0xcc5e86243f861d2d64b08c35db21013e773ac5cf10097946fe0011304886d5",
          "0x2",
          "0x5",
          "0x101dc0399934cc08fa0d6f6f2daead4e4a38cabeea1c743e1fc28d2d6e58e99",
          "0x75313238",
          "0x800000000000000700000000000000000000000000000000",
          "0x800000000000000700000000000000000000000000000003",
          "0x1ca27f4a416836d321a19551a437aeb9946fde25373762126dda39b53c0bd11",
          "0x8",
          "0x2cf4ead4392e987c9b56754a10f0a8e0f13776791e096fa6503893f05582c51",
          "0x753332",
          "0x53746f7261676541646472657373",
          "0x53746f726167654261736541646472657373",
          "0x6f1579ced6c62aefa8dab7b544bc81f0df199a09860f19264f73ac267f1d17",
          "0x800000000000000f00000000000000000000000000000003",
          "0xe",
          "0x291e27b2bce5c65645800be9df2feac3e534819190def05fdf13189c0131ecb",
          "0xf",
          "0x2e11e54eac8ee424ba3559c594d0c3ac2885ae35f92c9c7a50df60309af7bec",
          "0x11",
          "0xc61de79f23ae39c538dd62383b07c1c702af49a1c5aa7c550305add888f234",
          "0x12",
          "0x1909a2057b9c1373b889e003e050a09f431d8108e0659d03444ced99a6eea68",
          "0x426f78",
          "0x800000000000000700000000000000000000000000000001",
          "0x29d7d57c04a880978e7b3689f6218e507f3be17588744b58dc17762447ad0e7",
          "0x15",
          "0x536e617073686f74",
          "0x800000000000000700000000000000000000000000000002",
          "0x1baeba72e79e9db2587cf44fedb2f3700b2075a5e8e39a562584862c4b71f62",
          "0x17",
          "0x18",
          "0x2f23416cc60464d4158423619ba713070eb82b686c9d621a22c67bd37f6e0a9",
          "0x1a",
          "0x4275696c74696e436f737473",
          "0x53797374656d",
          "0x9931c641b913035ae674b400b61a51476d506bbe8bba2ff8a6272790aba9e6",
          "0x19",
          "0x66656c74323532",
          "0x4761734275696c74696e",
          "0x71",
          "0x7265766f6b655f61705f747261636b696e67",
          "0x77697468647261775f676173",
          "0x6272616e63685f616c69676e",
          "0x7374727563745f6465636f6e737472756374",
          "0x73746f72655f74656d70",
          "0x61727261795f736e617073686f745f706f705f66726f6e74",
          "0x64726f70",
          "0x61727261795f6e6577",
          "0x66656c743235325f636f6e7374",
          "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473",
          "0x61727261795f617070656e64",
          "0x7374727563745f636f6e737472756374",
          "0x656e756d5f696e6974",
          "0x1e",
          "0x20",
          "0x1d",
          "0x6765745f6275696c74696e5f636f737473",
          "0x1c",
          "0x77697468647261775f6761735f616c6c",
          "0x736e617073686f745f74616b65",
          "0x66756e6374696f6e5f63616c6c",
          "0x656e756d5f6d61746368",
          "0x1b",
          "0x753132385f746f5f66656c74323532",
          "0x4f7574206f6620676173",
          "0x656e61626c655f61705f747261636b696e67",
          "0x16",
          "0x6a756d70",
          "0x756e626f78",
          "0x72656e616d65",
          "0x14",
          "0x64697361626c655f61705f747261636b696e67",
          "0x13",
          "0x4661696c656420746f20646573657269616c697a6520706172616d202331",
          "0x6",
          "0x7",
          "0x75313238735f66726f6d5f66656c74323532",
          "0x9",
          "0x10",
          "0x73746f726167655f626173655f616464726573735f636f6e7374",
          "0x1afeeaff0ed5cee7d05a21078399c2f56226b0cd5657062500cef4c4e736f85",
          "0x73746f726167655f616464726573735f66726f6d5f62617365",
          "0x7533325f636f6e7374",
          "0xb",
          "0xc",
          "0x73746f726167655f726561645f73797363616c6c",
          "0xa",
          "0x53746f726555313238202d206e6f6e2075313238",
          "0x753132385f6f766572666c6f77696e675f616464",
          "0x753132385f616464204f766572666c6f77",
          "0x73746f726167655f77726974655f73797363616c6c",
          "0x246",
          "0xffffffffffffffff",
          "0x47",
          "0xd",
          "0x3a",
          "0x33",
          "0x22",
          "0x23",
          "0x24",
          "0x25",
          "0x26",
          "0x27",
          "0x28",
          "0x29",
          "0x2a",
          "0x2b",
          "0x2c",
          "0x2d",
          "0x2e",
          "0x2f",
          "0x30",
          "0x31",
          "0x32",
          "0x34",
          "0x35",
          "0x36",
          "0xc8",
          "0x61",
          "0x66",
          "0xb7",
          "0xb2",
          "0x81",
          "0xa4",
          "0x9d",
          "0x37",
          "0x38",
          "0x39",
          "0x3b",
          "0x3c",
          "0xbb",
          "0x3d",
          "0x3e",
          "0x3f",
          "0x40",
          "0x41",
          "0x42",
          "0x43",
          "0x44",
          "0x45",
          "0x46",
          "0x48",
          "0x149",
          "0xe2",
          "0xe7",
          "0x138",
          "0x133",
          "0x102",
          "0x125",
          "0x11e",
          "0x13c",
          "0x163",
          "0x19b",
          "0x193",
          "0x18c",
          "0x1b5",
          "0x49",
          "0x4a",
          "0x4b",
          "0x4c",
          "0x4d",
          "0x4e",
          "0x1de",
          "0x1d0",
          "0x4f",
          "0x50",
          "0x1e4",
          "0x51",
          "0x52",
          "0x53",
          "0x54",
          "0x55",
          "0x56",
          "0x1f0",
          "0x57",
          "0x58",
          "0x1f4",
          "0x59",
          "0x5a",
          "0x5b",
          "0x5c",
          "0x208",
          "0x5d",
          "0x5e",
          "0x20d",
          "0x5f",
          "0x60",
          "0x217",
          "0x62",
          "0x63",
          "0x64",
          "0x65",
          "0x67",
          "0x224",
          "0x68",
          "0x69",
          "0x6a",
          "0x231",
          "0x6b",
          "0x6c",
          "0x240",
          "0x6d",
          "0x6e",
          "0x6f",
          "0x70",
          "0xd6",
          "0x157",
          "0x15d",
          "0x16b",
          "0x1a4",
          "0x1bb",
          "0x1ea",
          "0x1fa",
          "0x21e",
          "0x22a",
          "0x23a",
          "0x14ce",
          "0xd100f080e0806050d030c080b0a0905040308080605070306050403020100",
          "0x819081a050d10190819081805171016150f08080814050d10130812081105",
          "0x230507031308220821050d100808200806051f031e050403161d161c161b0f",
          "0x100c08292808081908270517101308260825050d100808240806051f032008",
          "0xd10190806052d03300806052d032f082e052d030f08292c08082b082a0517",
          "0x83d053c053b053a39023816371308360835050d1002341633130832083105",
          "0x440c08083e431208420c0808412b0808402f0808400c08083f0508083e3008",
          "0x54a4708083e4908083e4808083e081247081246130808450e0808450c0808",
          "0x3d5008084f0e0e084e240808402408084d2408084520080845054c4b08083e",
          "0x5212084205124708124636080845300808450f0808400f08084d0551320808",
          "0x12540812460808084505555408083e2f08083e051254081246055330080840",
          "0x1908083e1908084005595808084f0f0e084e0c0808570c0808565408084f08",
          "0xe084e2408083d5c0e084e5b12084208080840260808405a08084f130e084e",
          "0x5f0e084e190e084e2008084d0812580812465808083e051258081246055e5d",
          "0x8084008125a0812465a08083e05125a081246260808452208083d6008084f",
          "0x6808083e05126808124605676608083e6508083e0512086405636212086120",
          "0x125f081246056a680e084e0812680812465008083e08125008124669120842",
          "0x5d08083e05125d081246056c650e084e6b12084208125f0812465f08083e05",
          "0x8083e051260081246220808451208083d5c08084f660e084e08125d081246",
          "0x84f0c0808405f08084f051250081246320808456808084f08126008124660",
          "0x805056e080505056d08125c0812465c08083e05125c081246120808455d08",
          "0x80f080f0519086e080e080e05056e080512055d5c126f130f126e12080512",
          "0x85d05056e085f085c05056e0805120565082b685f126e12190813050f086e",
          "0x706612650570086e087008680570086e08055f0566086e08051905056e0868",
          "0x80f0524086e086008200560086e08202212700522086e0805660520086e08",
          "0xf0824086e082408240512086e081208600513086e08130822050f086e080f",
          "0x86e0826085a0526086e08052605056e0865085c05056e080512052412130f",
          "0x54052f086e08052b05056e08051205542b1271585a126e1226130f0e580526",
          "0x55a086e085a080f05056e08360830053236126e0830082f0530086e082f08",
          "0x320547494b500f6e083212585a0f360512086e081208600558086e08580822",
          "0x573086e080c08500500086e08051905056e080512054808720c086e124708",
          "0x6e08760847057776126e087508490575086e08740012650574086e0873084b",
          "0x6e0850080f057a086e087908000579086e087808480578086e0877080c0505",
          "0x494b500f087a086e087a08240549086e08490860054b086e084b0822055008",
          "0x4b086e084b08220550086e0850080f057b086e0848082005056e080512057a",
          "0x51905056e080512057b494b500f087b086e087b08240549086e0849086005",
          "0x566057e086e087d7c1265057d086e087d0868057d086e080573057c086e08",
          "0x22052b086e082b080f0581086e088008200580086e087e7f1270057f086e08",
          "0x512058112542b0f0881086e088108240512086e081208600554086e085408",
          "0x86e088308680583086e0805730582086e08051905056e080e087405056e08",
          "0x88508200585086e08728412700584086e0805660572086e08838212650583",
          "0x8608240512086e08120860055d086e085d0822055c086e085c080f0586086e",
          "0x55d5c1287130f126e120805120805056e0805050586125d5c0f0886086e08",
          "0x190813050f086e080f080f05056e0805750519086e080e080e05056e080512",
          "0x570086e085f08770566086e0868087605056e08051205650888685f126e12",
          "0x822087b0522086e08057a05056e0805120505890805790520086e08660878",
          "0x526088a24086e1220087c0520086e086008780570086e086508770560086e",
          "0x68050f086e080f080f0558086e085a087e055a086e0824087d05056e080512",
          "0x805120530088b2f086e1254088005542b126e08580f127f0558086e085808",
          "0x836085c05056e08058105056e0805120550088c3236126e1270081305056e",
          "0x549086e08055f054b086e08051905056e082f088205056e0832085d05056e",
          "0x86e08470c1270050c086e0805660547086e08494b12650549086e08490868",
          "0x6e081208600513086e08130822052b086e082b080f0500086e084808200548",
          "0x85c05056e08058105056e080512050012132b0f0800086e08000824051208",
          "0x8d7574126e1273132b0e580573086e0873085a0573086e08052605056e0850",
          "0x86e0874080f0579086e087808540578086e08052b05056e08051205777612",
          "0x1275741372052f086e082f08830512086e081208600575086e087508220574",
          "0x87e088505056e080512057f088e7e086e127d0884057d7c7b7a0f6e082f79",
          "0x6e0882080c05056e08810847058281126e088008490580086e08051905056e",
          "0x87b0822057a086e087a080f0584086e087208000572086e08830848058308",
          "0x56e08051205847c7b7a0f0884086e08840824057c086e087c0860057b086e",
          "0x86e087c0860057b086e087b0822057a086e087a080f0585086e087f082005",
          "0x51905056e082f088205056e08051205857c7b7a0f0885086e08850824057c",
          "0x5660590086e088f861265058f086e088f0868058f086e0805730586086e08",
          "0x220576086e0876080f0592086e087108200571086e08909112700591086e08",
          "0x51205921277760f0892086e089208240512086e081208600577086e087708",
          "0x5940805790593086e082b080f05056e0870085c05056e0830088605056e08",
          "0x5810593086e080f080f05056e0870085c05056e0826088605056e08051205",
          "0x8969512650596086e089608680596086e08058f0595086e08051905056e08",
          "0x93080f059a086e089908200599086e08979812700598086e0805660597086e",
          "0x930f089a086e089a08240512086e081208600513086e081308220593086e08",
          "0x59c086e080573059b086e08051905056e080e087405056e080512059a1213",
          "0x86e089d9e1270059e086e080566059d086e089c9b1265059c086e089c0868",
          "0x6e08120860055d086e085d0822055c086e085c080f059f086e086f0820056f",
          "0xf126e120805120805056e080505059f125d5c0f089f086e089f0824051208",
          "0x6e080f080f05056e0805750519086e080e080e05056e080512055d5c12a013",
          "0x8770566086e0868087605056e080512056508a1685f126e12190813050f08",
          "0x86e08057a05056e0805120505a20805790520086e086608780570086e085f",
          "0x6e1220087c0520086e086008780570086e086508770560086e0822087b0522",
          "0xf080f0558086e085a087e055a086e0824087d05056e080512052608a32408",
          "0xa42f086e1254088005542b126e08580f127f0558086e08580868050f086e08",
          "0x6e08058105056e080512055008a53236126e1270081305056e080512053008",
          "0x5f054b086e08051905056e082f088205056e0832085d05056e0836085c0505",
          "0x70050c086e0805660547086e08494b12650549086e084908680549086e0805",
          "0x13086e08130822052b086e082b080f0500086e084808200548086e08470c12",
          "0x58105056e080512050012132b0f0800086e080008240512086e0812086005",
          "0x73132b0e580573086e0873085a0573086e08052605056e0850085c05056e08",
          "0x579086e087808540578086e08052b05056e08051205777612a67574126e12",
          "0x82f7912750f90052f086e082f08830512086e081208600575086e08750822",
          "0x5056e080512057e08a77d086e127c08840574086e0874080f057c7b7a0e6e",
          "0xc05056e08800847058180126e087f0849057f086e08051905056e087d0885",
          "0x574086e0874080f0572086e088308000583086e088208480582086e088108",
          "0x1205727b7a740f0872086e08720824057b086e087b0860057a086e087a0822",
          "0x860057a086e087a08220574086e0874080f0584086e087e082005056e0805",
          "0x6e082f088205056e08051205847b7a740f0884086e08840824057b086e087b",
          "0x86e08868512650586086e088608680586086e0805730585086e0805190505",
          "0x6e0876080f0571086e089108200591086e088f9012700590086e080566058f",
          "0x1277760f0871086e087108240512086e081208600577086e08770822057608",
          "0x790592086e082b080f05056e0870085c05056e0830088605056e0805120571",
          "0x86e080f080f05056e0870085c05056e0826088605056e0805120505a80805",
          "0x650595086e089508680595086e08058f0593086e08051905056e0805810592",
          "0x99086e089808200598086e08969712700597086e0805660596086e08959312",
          "0x86e089908240512086e081208600513086e081308220592086e0892080f05",
          "0x80573059a086e08051905056e080e087405056e08051205991213920f0899",
          "0x9d1270059d086e080566059c086e089b9a1265059b086e089b0868059b086e",
          "0x60055d086e085d0822055c086e085c080f056f086e089e0820059e086e089c",
          "0x80f050f086e080e0891056f125d5c0f086f086e086f08240512086e081208",
          "0xf6e080f1208050f710512086e081208600508086e080808220505086e0805",
          "0x56e080512055c130f0ea90e12126e120805129205195d5c130f08195d5c13",
          "0x512055d1212085d086e085d08950512086e0812080f055d086e080e089305",
          "0x86e081908960519086e08057a05056e085c088205056e0813088205056e08",
          "0x970513086e080e0891055f0f12085f086e085f0895050f086e080f080f055f",
          "0x12086e081208600508086e080808220505086e0805080f055d5c126e081308",
          "0x56e080512057008aa66086e126508320565685f190f6e085d1208050f7105",
          "0x86e080f08830520086e082008830519086e0819080f0520086e0866085005",
          "0x5005056e080512052608ab24086e12600832056022126e080f20190e98050f",
          "0x55a086e085a08830568086e08680860055f086e085f0822055a086e082408",
          "0x9b05056e080512053008ac2f086e1254089a05542b580e6e085a5c685f0f99",
          "0x9c054b086e083608540550086e08057a05056e08320886053236126e082f08",
          "0x58086e085808220522086e0822080f0547086e0849089d0549086e08504b12",
          "0x86f05056e08051205472b58220f0847086e0847089e052b086e082b086005",
          "0x9e052b086e082b08600558086e085808220522086e0822080f050c086e0830",
          "0x6e0826086f05056e085c089f05056e080512050c2b58220f080c086e080c08",
          "0x848089e0568086e08680860055f086e085f08220522086e0822080f054808",
          "0x6f05056e080f088205056e085c089f05056e0805120548685f220f0848086e",
          "0x568086e08680860055f086e085f08220519086e0819080f0500086e087008",
          "0x600505086e08050822050f086e081208910500685f190f0800086e0800089e",
          "0x5d089a055d5c130e6e080e0f08050f99050e086e080e08830508086e080808",
          "0x7a05056e08650886056568126e0819089b05056e080512055f08ad19086e12",
          "0x522086e0820089d0520086e086670129c0570086e086808540566086e0805",
          "0x51205225c130e0822086e0822089e055c086e085c08600513086e08130822",
          "0x60089e055c086e085c08600513086e081308220560086e085f086f05056e08",
          "0x13086e080f08af050f086e0805ae05056e080e089f05605c130e0860086e08",
          "0x12135c12080fb30513086e081308b2055c086e085c08b1055c086e0805b005",
          "0x86e085f08680505086e0805080f05056e080512056665680eb45f195d0e6e",
          "0x2008800519086e08190860055d086e085d0822052070126e085f05127f055f",
          "0x220526086e0870080f0524086e082208b605056e080512056008b522086e12",
          "0x5120505b8080579052b086e082408b70558086e08190860055a086e085d08",
          "0x86e082f0868052f086e0805b90554086e08051905056e0860088605056e08",
          "0x83208ba0532086e08303612700536086e0805660530086e082f541265052f",
          "0x5008bb0519086e08190860055d086e085d08220570086e0870080f0550086e",
          "0x86e0805080f054b086e086608bc05056e0805120550195d700f0850086e08",
          "0x6e082b08bd052b086e084b08b70558086e08650860055a086e086808220526",
          "0x84908bb0558086e08580860055a086e085a08220526086e0826080f054908",
          "0x5056e080512055c1312bf0f0e126e121208050ebe0549585a260f0849086e",
          "0x120505c2080579055f086e085d08c10519086e080e080f055d086e080f08c0",
          "0x5c4055f086e086808c10519086e0813080f0568086e085c08c305056e0805",
          "0xbb0519086e0819080f0566086e08655f12c50565086e086508680565086e08",
          "0x6e080f08af0513086e080e084b050f086e0805ae056619120866086e086608",
          "0x5d080513c6055c086e085c08b2055d086e085d08b1055d086e0805b0055c08",
          "0x6e087008c80570086e08057a05056e080512056665680ec75f19126e12135c",
          "0xca0805790524086e082008c90560086e085f08600522086e08190822052008",
          "0x60086e086508600522086e086808220526086e086608cb05056e0805120505",
          "0x80512052b08cd58086e125a0888055a086e082408cc0524086e082608c905",
          "0x2208220530086e082f08d0052f086e08541212cf0554086e085808ce05056e",
          "0x56e080512053060220e0830086e083008d10560086e086008600522086e08",
          "0x60086e086008600522086e082208220536086e082b088905056e0812089f05",
          "0x5056e080512051208d308086e120508d2053660220e0836086e083608d105",
          "0x6e080512050f08080f086e080f08bb050f086e080e08d5050e086e080808d4",
          "0x6e085d08bb055d086e085c08ba055c086e08121312700513086e0805660505",
          "0xd405056e080808d805056e080512050e08d712086e120508d6055d08085d08",
          "0x56e0805120513080813086e081308bb0513086e080f08d5050f086e081208",
          "0x519086e080566055d086e08085c1265055c086e08051905056e080e088205",
          "0x508d90568080868086e086808bb0568086e085f08ba055f086e085d191270",
          "0xdd050f086e080e08dc050e086e080808db05056e080512051208da08086e12",
          "0x5c086e08121312700513086e08056605056e080512050f08080f086e080f08",
          "0x5474948050f304948050f705d08085d086e085d08dd055d086e085c08de05",
          "0x805474948050f304948050fbd0e120805474948050f304948050f050e1208",
          "0x49480513e108055805120c0512e00e120805504948050f244948050fdf0e12",
          "0x4948050fe30e1208055a49480e192449480fe20f0e1208055a4948050f1924",
          "0x6049480e192049480fe51208055005121919050ee40e120805504948050f20",
          "0xe9055c085d08e8080550080c5f12e70550086808e60e120805"
        ],
        "contract_class_version": "0.1.0",
        "entry_points_by_type": {
          "EXTERNAL": [
            {
              "selector": "0x17c00f03de8b5bd58d2016b59d251c13056b989171c5852949903bc043bc27",
              "function_idx": 0
            },
            {
              "selector": "0x9be09a9a955d79baeb70c3b225ab5090fb9bc543cf23547b9f095c38a27574",
              "function_idx": 1
            }
          ],
          "L1_HANDLER": [],
          "CONSTRUCTOR": [
            {
              "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194",
              "function_idx": 2
            }
          ]
        },
        "abi": "[{\"type\": \"impl\", \"name\": \"Balance\", \"interface_name\": \"starknet_multiple_contracts::balance::IBalance\"}, {\"type\": \"interface\", \"name\": \"starknet_multiple_contracts::balance::IBalance\", \"items\": [{\"type\": \"function\", \"name\": \"get\", \"inputs\": [], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"increase\", \"inputs\": [{\"name\": \"a\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}]}, {\"type\": \"constructor\", \"name\": \"constructor\", \"inputs\": [{\"name\": \"value_\", \"type\": \"core::integer::u128\"}]}, {\"type\": \"event\", \"name\": \"starknet_multiple_contracts::balance::Balance::Event\", \"kind\": \"enum\", \"variants\": []}]"
      },
      "compiled_class_hash": "0x209f23b658eedd71747ed1c4cac1e4118a33e5a84a5f0e67e9af4d486dae621",
      "sender_address": "0x504b14472811be9720c77ab440ceb1c04b5490d083a8a9d020e3bfe04108112",
      "version": "0x100000000000000000000000000000001",
      "signature": [
        "0x1",
        "0x6bbc0ae68b49b56351d50b01a82310f83cd59aab2fa419fd64d934b26c65ec",
        "0x628e9812bad26295049731060718b6dd0c642ed761a047f2b5b6044ad4b6544"
      ],
      "nonce": "0x1",
      "max_fee": "0x0"
    }
  ],
  "block_id": "pending",
  "simulation_flags": [
    "SKIP_VALIDATE"
  ]
}
 
        41: Transaction execution error: {"transaction_index":0,"execution_error":"failed to create transaction from api: ContractClassVersionMismatch { declare_version: TransactionVersion(StarkFelt(\"0x0000000000000000000000000000000000000000000000000000000000000001\")), cairo_version: 1 }"}

NOTE: Please clearly indicate the time (with timezone or in UTC) when you have observed the error.

Expected behavior
Declare successful

Cairo files
Default template

Starknet Remix Plugin details

  • Default Starknet plugin from Remix marketplace
  • Environment: wallet configuration

Host system (please complete the following information):

  • OS: Win 10
  • Browser: chrome
  • Version: 122.0.6261.113 (Official Build) (64-bit)
@rjnrohit
Copy link
Contributor

rjnrohit commented Apr 3, 2024

should work now!

@rjnrohit rjnrohit closed this as completed Apr 3, 2024
@wufengtao1
Copy link
Author

wufengtao1 commented Apr 10, 2024

RPC: starknet_estimateFee with params {
  "request": [
    {
      "type": "DECLARE",
      "contract_class": {
        "sierra_program": [
          "0x1",
          "0x5",
          "0x0",
          "0x2",
          "0x6",
          "0x3",
          "0xb0",
          "0x50",
          "0x1d",
          "0x52616e6765436865636b",
          "0x800000000000000100000000000000000000000000000000",
          "0x436f6e7374",
          "0x800000000000000000000000000000000000000000000002",
          "0x1",
          "0x1b",
          "0x2",
          "0x753132385f616464204f766572666c6f77",
          "0x4661696c656420746f20646573657269616c697a6520706172616d202331",
          "0x537472756374",
          "0x800000000000000f00000000000000000000000000000001",
          "0x0",
          "0x5cb1cc98aee64915af7809afe601de104e4af748fb0e54518c4cc330074c16",
          "0x800000000000000f00000000000000000000000000000002",
          "0x65f46a4eda126b5217697bf8e9048b6d17e07f537cab60549f6e7aa5b1b611",
          "0x3",
          "0x2ee1e2b1b89f8c495f200e4956278a4d47395fe262f27b52e5865c9524c08c3",
          "0x800000000000000f00000000000000000000000000000003",
          "0x4",
          "0x5",
          "0x16a4c8d7c05909052238a862d8cc3e7975bf05a07b3a69c6b28951083a6d672",
          "0x4172726179",
          "0x800000000000000300000000000000000000000000000001",
          "0x800000000000000300000000000000000000000000000003",
          "0x7",
          "0x8",
          "0x456e756d",
          "0x861b83e1d3a4adfd27c75983c1e56399a0aa4874d43fdb9b0ce12a64d92335",
          "0x6",
          "0x9",
          "0x426f78",
          "0x800000000000000700000000000000000000000000000001",
          "0x800000000000000700000000000000000000000000000003",
          "0x29d7d57c04a880978e7b3689f6218e507f3be17588744b58dc17762447ad0e7",
          "0xb",
          "0x4f7574206f6620676173",
          "0x53746f726555313238202d206e6f6e2075313238",
          "0x536e617073686f74",
          "0x800000000000000700000000000000000000000000000002",
          "0x1baeba72e79e9db2587cf44fedb2f3700b2075a5e8e39a562584862c4b71f62",
          "0xf",
          "0x10",
          "0x75313238",
          "0x800000000000000700000000000000000000000000000000",
          "0x14",
          "0x753332",
          "0x53746f7261676541646472657373",
          "0x53746f726167654261736541646472657373",
          "0x4275696c74696e436f737473",
          "0x53797374656d",
          "0x9931c641b913035ae674b400b61a51476d506bbe8bba2ff8a6272790aba9e6",
          "0x11",
          "0x496e70757420746f6f206c6f6e6720666f7220617267756d656e7473",
          "0x66656c74323532",
          "0x4761734275696c74696e",
          "0x42",
          "0x7265766f6b655f61705f747261636b696e67",
          "0x77697468647261775f676173",
          "0x6272616e63685f616c69676e",
          "0x7374727563745f6465636f6e737472756374",
          "0x73746f72655f74656d70",
          "0x61727261795f736e617073686f745f706f705f66726f6e74",
          "0x64726f70",
          "0x61727261795f6e6577",
          "0x636f6e73745f61735f696d6d656469617465",
          "0x1a",
          "0x61727261795f617070656e64",
          "0x7374727563745f636f6e737472756374",
          "0x656e756d5f696e6974",
          "0x19",
          "0x1c",
          "0x18",
          "0x6765745f6275696c74696e5f636f737473",
          "0x17",
          "0x77697468647261775f6761735f616c6c",
          "0x73746f726167655f626173655f616464726573735f636f6e7374",
          "0x1afeeaff0ed5cee7d05a21078399c2f56226b0cd5657062500cef4c4e736f85",
          "0x73746f726167655f616464726573735f66726f6d5f62617365",
          "0x13",
          "0x15",
          "0x73746f726167655f726561645f73797363616c6c",
          "0x75313238735f66726f6d5f66656c74323532",
          "0x753132385f746f5f66656c74323532",
          "0x736e617073686f745f74616b65",
          "0x12",
          "0xe",
          "0x6a756d70",
          "0xd",
          "0x656e61626c655f61705f747261636b696e67",
          "0xc",
          "0x656e756d5f6d61746368",
          "0x756e626f78",
          "0x72656e616d65",
          "0x64697361626c655f61705f747261636b696e67",
          "0x66756e6374696f6e5f63616c6c",
          "0xa",
          "0x73746f726167655f77726974655f73797363616c6c",
          "0x753132385f6f766572666c6f77696e675f616464",
          "0x1c1",
          "0xffffffffffffffff",
          "0x5b",
          "0x4e",
          "0x16",
          "0x41",
          "0x1e",
          "0x1f",
          "0x20",
          "0x21",
          "0x35",
          "0x22",
          "0x23",
          "0x24",
          "0x25",
          "0x26",
          "0x27",
          "0x28",
          "0x29",
          "0x2a",
          "0x2b",
          "0x2c",
          "0x2d",
          "0x2e",
          "0x2f",
          "0x30",
          "0x31",
          "0x32",
          "0x33",
          "0x46",
          "0x34",
          "0x36",
          "0x37",
          "0x38",
          "0x39",
          "0x3a",
          "0x3b",
          "0x3c",
          "0x3d",
          "0x3e",
          "0x3f",
          "0x40",
          "0xdc",
          "0x75",
          "0x7a",
          "0xcb",
          "0xc5",
          "0x94",
          "0xb7",
          "0xb0",
          "0xcf",
          "0x43",
          "0x44",
          "0x45",
          "0x47",
          "0x48",
          "0x49",
          "0x15e",
          "0xf6",
          "0xfb",
          "0x14d",
          "0x147",
          "0x115",
          "0x139",
          "0x130",
          "0x151",
          "0x4a",
          "0x4b",
          "0x4c",
          "0x1b2",
          "0x1a4",
          "0x195",
          "0x18b",
          "0x1b9",
          "0x69",
          "0xea",
          "0x16c",
          "0xf74",
          "0x120a110c0b0a10050f0c0e0a0d0c0b0a090706050403080706050403020100",
          "0x1f1e051d051c0c181b1a051905110c180a06051716150c0b0a14051305110c",
          "0x280c270a1a05202625070605040324070605040314052305220c211b060520",
          "0x5330c181b02322c312c302c2f2c2e0c072d0504032c2b2a05110c270a2905",
          "0x5053e0c05053d2a05053c0c3b0c3a0c393802372c363507060504031e0534",
          "0x54419050544060505430605053d42050541060505402305053f2905053f06",
          "0x7054c0c4b4a05053d0c494605053d4805053d4705053d0507460507451e05",
          "0x5441a05053f1a0505540c530c520c515005053d2d05053d4f0505410c4e4d",
          "0x3f580505410c571a05053d560505415505053f0c0746050745340505442a05",
          "0x55b05075a050745140505445a05053d2905053d0c075a0507450c592a0505",
          "0x5055b1010055f5505053d13050544100505440c5e0605055d0605055c5a05",
          "0x6005053d0c07600507451d0505440c620c61070505411405053f1d05053f60",
          "0x1413076407050c07050c0c64050c0c0c63050505410507600507451305053f",
          "0x71a05140c130564051305130c1a0564051005100c0c64050c070c191d0765",
          "0x50c1a0c0c64056005190c0c64051e051d0c0c64050c070c230550601e0764",
          "0x50c5a0c56056405585a07230c580564055805600c580564050c1e0c5a0564",
          "0x5290c130564051305130c340564052a05560c2a056405562907580c290564",
          "0x50c070c340714131305340564053405340c0705640507052a0c1405640514",
          "0x7551413102d0c5505640555054f0c550564050c550c0c640523051d0c0c64",
          "0x4a0c480564054a05670c4a0564050c500c0c64050c070c675007662d4f0764",
          "0x420c4f0564054f05130c480564054805460c460564054605480c460564050c",
          "0xc470564054705600c0c64050c070c6a690010684706421064074846072d13",
          "0xc706f6e106d6c6b076407474f07060c0605640506052a0c42056405420529",
          "0xc73056405727107230c720564056c05470c710564050c1a0c0c64050c07",
          "0xc7705640576056b0c7605640575056a0c0c64057405690c75740764057305",
          "0x605640506052a0c420564054205290c6b0564056b05130c7805640577056c",
          "0x70056e0c0c64056f056e0c0c64050c070c7806426b1305780564057805340c",
          "0x57a7907230c7a0564057a05600c7a0564050c6f0c790564050c1a0c0c6405",
          "0x7b05700c7e05640506052a0c7d0564054205290c7c0564056e05130c7b0564",
          "0x564050005290c7c0564054f05130c0c64050c070c0c80050c710c7f056405",
          "0x64057f8107580c810564050c5a0c7f0564056a05700c7e05640569052a0c7d",
          "0x57e052a0c7d0564057d05290c7c0564057c05130c820564056d05560c6d05",
          "0xc830564050c1a0c0c64050c070c827e7d7c1305820564058205340c7e0564",
          "0xc860564050c5a0c85056405848307230c840564058405600c840564050c72",
          "0x564056705290c500564055005130c880564058705560c8705640585860758",
          "0x730c0c64050c070c880767501305880564058805340c0705640507052a0c67",
          "0x8907230c8a0564058a05600c8a0564050c720c890564050c1a0c0c64051005",
          "0x130c380564056805560c680564058b8c07580c8c0564050c5a0c8b0564058a",
          "0x5380564053805340c0705640507052a0c190564051905290c1d0564051d05",
          "0xc64050c070c191d078d1413076407050c07050c0c64050c0c0c3807191d13",
          "0x601e0764071a05140c130564051305130c0c64050c740c1a0564051005100c",
          "0x64055a05770c580564051e05760c5a0564056005750c0c64050c070c23058e",
          "0x760c2a0564052905790c290564050c780c0c64050c070c0c8f050c710c5605",
          "0xc64050c070c5505903405640756057a0c560564052a05770c580564052305",
          "0x64072d1307060c2d0564052d05600c2d0564054f057c0c4f05640534057b0c",
          "0x6420764075805140c500564055005130c0c64050c070c46484a1091675007",
          "0x6e0c0c64050605190c0c640542051d0c0c64050c7d0c0c64050c070c470592",
          "0x7230c690564056905600c690564050c1e0c000564050c1a0c0c64056705",
          "0x130c6e0564056c05560c6c0564056a6b07580c6b0564050c5a0c6a05640569",
          "0x56e0564056e05340c0705640507052a0c140564051405290c500564055005",
          "0x6f0564050c550c0c640547051d0c0c64050c7d0c0c64050c070c6e07145013",
          "0x7e0c0c64050c070c7372079371700764076f1450102d0c6f0564056f054f0c",
          "0x2a0c710564057105290c700564057005130c7505640574057f0c740564050c",
          "0x820c797877761364056775077170146d0c670564056705810c070564050705",
          "0xc7c0564050c1a0c0c64057a05830c0c64050c070c7b05947a0564077905",
          "0xc810564057f056b0c7f0564057e056a0c0c64057d05690c7e7d0764057c05",
          "0x7805640578052a0c770564057705290c760564057605130c6d05640581056c",
          "0x5130c820564057b05560c0c64050c070c6d78777613056d0564056d05340c",
          "0x1305820564058205340c7805640578052a0c770564057705290c7605640576",
          "0x840564050c720c830564050c1a0c0c640567056e0c0c64050c070c82787776",
          "0x6405858607580c860564050c5a0c85056405848307230c840564058405600c",
          "0x507052a0c730564057305290c720564057205130c880564058705560c8705",
          "0xc0c640548056e0c0c64050c070c880773721305880564058805340c070564",
          "0x50c070c0c95050c710c890564054a05130c0c640558051d0c0c640546056e",
          "0xc0c64050c7d0c890564051305130c0c640558051d0c0c64055505840c0c64",
          "0xc8c0564058b8a07230c8b0564058b05600c8b0564050c850c8a0564050c1a",
          "0x890564058905130c960564053805560c380564058c6807580c680564050c5a",
          "0xc960714891305960564059605340c0705640507052a0c140564051405290c",
          "0x59805600c980564050c720c970564050c1a0c0c64051005730c0c64050c07",
          "0x5560c9a056405809907580c990564050c5a0c80056405989707230c980564",
          "0x340c0705640507052a0c190564051905290c1d0564051d05130c9b0564059a",
          "0x1d079c1413076407050c07050c0c64050c0c0c9b07191d13059b0564059b05",
          "0x140c130564051305130c0c64050c740c1a0564051005100c0c64050c070c19",
          "0x564051e05760c5a0564056005750c0c64050c070c23059d601e0764071a05",
          "0x5790c290564050c780c0c64050c070c0c9e050c710c560564055a05770c58",
          "0x59f3405640756057a0c560564052a05770c580564052305760c2a05640529",
          "0x2d0564052d05600c2d0564054f057c0c4f05640534057b0c0c64050c070c55",
          "0x140c500564055005130c0c64050c070c46484a10a067500764072d1307060c",
          "0x190c0c640542051d0c0c64050c7d0c0c64050c070c4705a106420764075805",
          "0x56905600c690564050c1e0c000564050c1a0c0c640567056e0c0c64050605",
          "0x5560c6c0564056a6b07580c6b0564050c5a0c6a056405690007230c690564",
          "0x340c0705640507052a0c140564051405290c500564055005130c6e0564056c",
          "0xc640547051d0c0c64050c7d0c0c64050c070c6e07145013056e0564056e05",
          "0xc737207a271700764076f1450102d0c6f0564056f054f0c6f0564050c550c",
          "0xc4a0c760564057405670c750564056705470c740564050c500c0c64050c07",
          "0x14860c700564057005130c760564057605460c770564057705480c77056405",
          "0x5000c7d0564050c1a0c0c64050c070c7c7b7a10a379780764077576770771",
          "0x6c0c6d05640581056b0c810564057f056a0c0c64057e05690c7f7e0764057d",
          "0xc7905640579052a0c780564057805290c700564057005130c820564056d05",
          "0x7c8307580c830564050c5a0c0c64050c070c82797870130582056405820534",
          "0x52a0c7a0564057a05290c700564057005130c850564058405560c84056405",
          "0x640567056e0c0c64050c070c857b7a701305850564058505340c7b0564057b",
          "0x56405878607230c870564058705600c870564050c720c860564050c1a0c0c",
          "0x64057205130c8b0564058a05560c8a056405888907580c890564050c5a0c88",
          "0x7737213058b0564058b05340c0705640507052a0c730564057305290c7205",
          "0x5130c0c640558051d0c0c640546056e0c0c640548056e0c0c64050c070c8b",
          "0xc640558051d0c0c64055505840c0c64050c070c0ca4050c710c8c0564054a",
          "0x5600c380564050c850c680564050c1a0c0c64050c7d0c8c0564051305130c",
          "0xc98056405969707580c970564050c5a0c96056405386807230c3805640538",
          "0x705640507052a0c140564051405290c8c0564058c05130c80056405980556",
          "0x50c1a0c0c64051005730c0c64050c070c8007148c1305800564058005340c",
          "0x50c5a0c9b0564059a9907230c9a0564059a05600c9a0564050c720c990564",
          "0x5290c1d0564051d05130ca7056405a605560ca60564059ba507580ca50564",
          "0x50c500ca707191d1305a7056405a705340c0705640507052a0c1905640519",
          "0x51d05460c190564051905480c190564050c4a0c1d0564051405670c140564",
          "0x6005600c0c64050c070c585a2310a8601e1a1064071d19070513420c1d0564",
          "0xa92956076407600c07060c1e0564051e052a0c1a0564051a05290c60056405",
          "0xc64050c070c675007aa2d4f07640713295610870c0c64050c070c55342a10",
          "0xc420564050c4a0c460564054a05670c480564052d05470c4a0564050c500c",
          "0x4846421e1a14860c4f0564054f05130c460564054605460c42056405420548",
          "0x564056b1007880c6b0564050c780c0c64050c070c6a690010ab4706076407",
          "0x640547052a0c060564050605290c4f0564054f05130c6e0564056c05890c6c",
          "0x5a0c0c640510058b0c0c64050c070c6e47064f13056e0564056e058a0c4705",
          "0xc4f0564054f05130c7105640570058c0c700564056a6f07580c6f0564050c",
          "0x70c7169004f13057105640571058a0c6905640569052a0c00056405000529",
          "0x564050c680c720564050c1a0c0c640510058b0c0c640567056e0c0c64050c",
          "0x5747507580c750564050c5a0c74056405737207230c730564057305600c73",
          "0x1e052a0c1a0564051a05290c500564055005130c7705640576058c0c760564",
          "0xc640534056e0c0c64050c070c771e1a5013057705640577058a0c1e056405",
          "0xc6f0c780564050c1a0c0c640513056e0c0c640510058b0c0c640555056e0c",
          "0x290c7b0564052a05130c7a056405797807230c790564057905600c79056405",
          "0xc070c0cac050c710c7e0564057a05700c7d0564051e052a0c7c0564051a05",
          "0x64052305290c7b0564050c05130c0c640513056e0c0c640510058b0c0c6405",
          "0x57e7f07580c7f0564050c5a0c7e0564055805700c7d0564055a052a0c7c05",
          "0x7d052a0c7c0564057c05290c7b0564057b05130c6d05640581058c0c810564",
          "0x50c4648470c132a48470c13136d7d7c7b13056d0564056d058a0c7d056405",
          "0x7050c4648470c132a48470c13ad1007050c4648470c132a48470c130c1007",
          "0xaf131007050c6048470c13551348470c14ae10"
        ],
        "contract_class_version": "0.1.0",
        "entry_points_by_type": {
          "EXTERNAL": [
            {
              "selector": "0x17c00f03de8b5bd58d2016b59d251c13056b989171c5852949903bc043bc27",
              "function_idx": 0
            },
            {
              "selector": "0x9be09a9a955d79baeb70c3b225ab5090fb9bc543cf23547b9f095c38a27574",
              "function_idx": 1
            }
          ],
          "L1_HANDLER": [],
          "CONSTRUCTOR": [
            {
              "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194",
              "function_idx": 2
            }
          ]
        },
        "abi": "[{\"type\": \"impl\", \"name\": \"Balance\", \"interface_name\": \"/opt/app/api/upload/temp/ce95436d4b9e0a89f0dca888c1326e6257d1ee7830441e0a5969b37599fad785/hello_world/src::IBalance\"}, {\"type\": \"interface\", \"name\": \"/opt/app/api/upload/temp/ce95436d4b9e0a89f0dca888c1326e6257d1ee7830441e0a5969b37599fad785/hello_world/src::IBalance\", \"items\": [{\"type\": \"function\", \"name\": \"get\", \"inputs\": [], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"increase\", \"inputs\": [{\"name\": \"a\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}]}, {\"type\": \"constructor\", \"name\": \"constructor\", \"inputs\": [{\"name\": \"value_\", \"type\": \"core::integer::u128\"}]}, {\"type\": \"event\", \"name\": \"/opt/app/api/upload/temp/ce95436d4b9e0a89f0dca888c1326e6257d1ee7830441e0a5969b37599fad785/hello_world/src::Balance::Event\", \"kind\": \"enum\", \"variants\": []}]"
      },
      "compiled_class_hash": "0x7c35ab099de134cb5d3d2f9990f7e465e3ed697b6162b43090f2d593276dedf",
      "sender_address": "0x2b3704b1502b90041633e5950d99dfe77e64f44145c8c2899504390a7ec4c6c",
      "version": "0x100000000000000000000000000000001",
      "signature": [],
      "nonce": "0x1",
      "max_fee": "0x0"
    }
  ],
  "block_id": "pending",
  "simulation_flags": [
    "SKIP_VALIDATE"
  ]
}

        41: Transaction execution error: {"transaction_index":0,"execution_error":"failed to create transaction from api: ContractClassVersionMismatch { declare_version: TransactionVersion(StarkFelt(\"0x0000000000000000000000000000000000000000000000000000000000000001\")), cairo_version: 1 }"}

same problem, sir.

@wufengtao1
Copy link
Author

@rjnrohit

@varex83 varex83 reopened this Jul 12, 2024
@varex83 varex83 added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed ODHack Issues are part of the HackODFest and the contributors will be rewarded during the hackathon period labels Jul 12, 2024
@PedroRosalba
Copy link

Mind if I try this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed ODHack Issues are part of the HackODFest and the contributors will be rewarded during the hackathon period
Projects
None yet
Development

No branches or pull requests

4 participants