diff --git a/contracts/rateproducer/rateproducer.abi b/contracts/rateproducer/rateproducer_mainnet.abi similarity index 100% rename from contracts/rateproducer/rateproducer.abi rename to contracts/rateproducer/rateproducer_mainnet.abi diff --git a/contracts/rateproducer/rateproducer.wasm b/contracts/rateproducer/rateproducer_mainnet_mainnet.wasm old mode 100755 new mode 100644 similarity index 100% rename from contracts/rateproducer/rateproducer.wasm rename to contracts/rateproducer/rateproducer_mainnet_mainnet.wasm diff --git a/webapp/src/context/models/user.js b/webapp/src/context/models/user.js index 76115855..4a26c9f9 100644 --- a/webapp/src/context/models/user.js +++ b/webapp/src/context/models/user.js @@ -31,7 +31,9 @@ export const getUserDataModeled = async ual => { const rpc = getRpc(ual) const account = await rpc.get_account(accountName) - const { rows: edenMembers } = await rpc.get_table_rows({ + const { + rows: [edenMembers] + } = await rpc.get_table_rows({ json: true, code: mainConfig.contractEden, scope: 0, @@ -42,10 +44,7 @@ export const getUserDataModeled = async ual => { show_payer: false }) - if ( - edenMembers.length > 0 && - edenMembers[0].value[1].account === accountName - ) { + if (edenMembers?.length > 0 && edenMembers[1].account === accountName) { edenMember = true }