Git Product home page Git Product logo

sei-cosmwasm's Issues

unable to deploy the contract: unauthorized

Dear Sei Team,
I got an issue when deploy the contract to atlantic-1 tesnet:
failed to execute message; message index: 0: can not create code: unauthorized

`code: 4
codespace: sdk
data: ""
events:

  • attributes:
    • index: false
      key: c3BlbmRlcg==
      value: c2VpMWU5NnA0cGpqYTlnM2poeTc5NDZjM2xwOXg1cG5kdjdkZmZ2a2Vw
    • index: false
      key: YW1vdW50
      value: MTAwMHVzZWk=
      type: coin_spent
  • attributes:
    • index: false
      key: cmVjZWl2ZXI=
      value: c2VpMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsYTRqa2R1
    • index: false
      key: YW1vdW50
      value: MTAwMHVzZWk=
      type: coin_received
  • attributes:
    • index: false
      key: cmVjaXBpZW50
      value: c2VpMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsYTRqa2R1
    • index: false
      key: c2VuZGVy
      value: c2VpMWU5NnA0cGpqYTlnM2poeTc5NDZjM2xwOXg1cG5kdjdkZmZ2a2Vw
    • index: false
      key: YW1vdW50
      value: MTAwMHVzZWk=
      type: transfer
  • attributes:
    • index: false
      key: c2VuZGVy
      value: c2VpMWU5NnA0cGpqYTlnM2poeTc5NDZjM2xwOXg1cG5kdjdkZmZ2a2Vw
      type: message
  • attributes:
    • index: false
      key: ZmVl
      value: MTAwMHVzZWk=
      type: tx
  • attributes:
    • index: false
      key: YWNjX3NlcQ==
      value: c2VpMWU5NnA0cGpqYTlnM2poeTc5NDZjM2xwOXg1cG5kdjdkZmZ2a2VwLzIyMQ==
      type: tx
  • attributes:
    • index: false
      key: c2lnbmF0dXJl
      value: RzRzblRsWW12WElPaEQ4dkNySUtPZERRRllzSlFqME45TlpNRGJJeW5ac0lUSE1ycm44Um43eFo1d3E1UmdJdFRRN2R6Y1pmUEJwWVRTTDhoUFhUalE9PQ==
      type: tx
      gas_used: "571041"
      gas_wanted: "571041"
      height: "12434534"
      info: ""
      logs: []
      raw_log: 'failed to execute message; message index: 0: can not create code: unauthorized'
      timestamp: ""
      tx: null
      txhash: E1A4A13D5CE9F9C5E0FD0D85AB5F8085BA1DB6E12C6AF3163D47313BEB6B4117`

error: the lock file /code/Cargo.lock needs to be updated but --locked was passed to prevent this

wade@WadeLeedeMacBook-Pro sei-cosmwasm % docker run --rm -v "$(pwd)":/code
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry
cosmwasm/rust-optimizer:0.12.6
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Info: RUSTC_WRAPPER=sccache
Info: sccache stats before build
Compile requests 0
Compile requests executed 0
Cache hits 0
Cache misses 0
Cache timeouts 0
Cache read errors 0
Forced recaches 0
Cache write errors 0
Compilation failures 0
Cache errors 0
Non-cacheable compilations 0
Non-cacheable calls 0
Non-compilation calls 0
Unsupported compiler calls 0
Average cache write 0.000 s
Average cache read miss 0.000 s
Average cache read hit 0.000 s
Failed distributed compilations 0
Cache location Local disk: "/root/.cache/sccache"
Cache size 0 bytes
Max cache size 10 GiB
Building contract in /code ...
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /code/contracts/sei-tester/Cargo.toml
workspace: /code/Cargo.toml
Updating crates.io index
error: the lock file /code/Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.

Handle `PlaceOrders` reply rsponse error

Hi guys,

I copy codes of handle_place_order_reply function from sei-tester, but it can't work in my project.
I got an error in my handle reply code:

Error parsing into type MsgPlaceOrdersResponse: failed to parse data)

I saw the sei dex module handle reply is not as same as cosmwasm-std,may i take a mistake or miss something?
how to fix it?
thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.