eos
eos copied to clipboard
Is it possible to get other contract's table in smart contract?
contract A define a multi-indexed table , is there any way i can get it in contract B?
yes, as long as you define exact the same struct. then in the constructor you need to specifies the name of other contract to replace "_self". for example table t(_self, scope) will be table t(other_contract, scope). Please also note that you can only read the data but not modify the data.