eos icon indicating copy to clipboard operation
eos copied to clipboard

drawn_30,table now not support i64i64i64 primary key?

Open chenlian2015 opened this issue 8 years ago • 2 comments

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

chenlian2015 avatar Apr 11 '18 10:04 chenlian2015

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;
    ...
}

salterok avatar Apr 25 '18 10:04 salterok

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.

andriantolie avatar Jul 04 '18 04:07 andriantolie