Eos: drawn_30,table now not support i64i64i64 primary key?

Created on 11 Apr 2018  路  2Comments  路  Source: EOSIO/eos

bogon:oc_askanswer cl$ cleos get table ocaskans oct answer
Error 3010003: Contract Table Query Exception
Most likely, the given table doesnt' exist in the blockchain.
Error Details:
Invalid table type i64i64i64

Most helpful comment

I had same error. Seems like eos trying to guess primary key size and in my case setting it to i64i64i64 when i have first 3 fields of type uint64_t.
A'm not sure if this the case but anyway i solved it by specifying primary key type like this:

// @abi table contract i64
struct contract {
    uint64_t id;
    ...
}

All 2 comments

I had same error. Seems like eos trying to guess primary key size and in my case setting it to i64i64i64 when i have first 3 fields of type uint64_t.
A'm not sure if this the case but anyway i solved it by specifying primary key type like this:

// @abi table contract i64
struct contract {
    uint64_t id;
    ...
}

Yes, // @abi table contract i64 will solve the problem. There's a problem with abigen previously, I think it should be fixed in the latest one.

Was this page helpful?
0 / 5 - 0 ratings