pinknetworkx / atomicassets-contract

Smart Contract of the AtomicAssets standard.
MIT License
149 stars 88 forks source link

expose tables as public instead of private #34

Open DenisCarriere opened 3 years ago

DenisCarriere commented 3 years ago

External contracts cannot implement with this interface if the table structures are private.

atomicassets::templates_t _templates( "atomicassets"_n, collection_name.value );
auto itr = _templates.find( template_id );

❌ ERROR message receive at compile:

error: 'templates_t' is a private member of 'atomicassets'
    atomicassets::templates_t _templates( "atomicassets"_n, collection_name.value );