blockchain-family / nft-marketplace-contracts

GNU Affero General Public License v3.0
7 stars 7 forks source link

I get an error on deploy contract #6

Closed ilyar closed 5 months ago

ilyar commented 5 months ago

I'm trying to use and deploy the contract according to the instructions, but deployment doesn't happen, the reason is not clear.

I get an error:

npx locklift run --disable-build --network test --script scripts/0-deploy-account.ts --key_number 0 --balance 5
[INFO]  GiverV2 is used as a giver, the giver balance is: 50.996642454 ever
NekotonRpcError: sendMessage: Message expired. Error: Contract did not accept message, exit code: 40

I set up a giver contract and tried different endpoints:

Config:

test: {
  connection: {
    id: 1002,
    type: "jrpc",
    group: "testnet",
    data: {
      endpoint: process.env.TEST_ENDPOINT_RPC!,
    },
  },
  // connection: {
  //   id: 1002,
  //   type: 'graphql',
  //   group: 'testnet',
  //   data: {
  //     endpoints: [process.env.TEST_ENDPOINT_GQL!],
  //     latencyDetectionInterval: 1000,
  //   },
  // },
  giver: {
    address: process.env.TEST_GIVER_ADDRESS!,
    phrase: process.env.TEST_GIVER_PHRASE!,
    accountId: parseInt(process.env.TEST_GIVER_ACCOUNT_ID || '0'),
  },
  keys: {
    phrase: process.env.TEST_PHRASE!,
    amount: 20,
  },
},
},
ilyar commented 5 months ago

I figured it out: Locklift does not support GiverV3 (in theory it can be used as a custom one, but this is not obvious). The solution is to use GiverV2.