Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Removing usages of deprecated table_key #675

Merged
merged 2 commits into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Removing table_key from get_table_rows
  • Loading branch information
Bradley Hart committed Feb 5, 2020
commit e662d54a0e69d1f3abc239d76474e745e12a3c1d
2 changes: 0 additions & 2 deletions src/eosjs-jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export class JsonRpc implements AuthorityProvider, AbiProvider {
code,
scope,
table,
table_key = '',
lower_bound = '',
upper_bound = '',
index_position = 1,
Expand All @@ -154,7 +153,6 @@ export class JsonRpc implements AuthorityProvider, AbiProvider {
code,
scope,
table,
table_key,
lower_bound,
upper_bound,
index_position,
Expand Down
6 changes: 1 addition & 5 deletions src/tests/eosjs-jsonrpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,10 @@ describe('JSON RPC', () => {
const code = 'morse';
const scope = 'minty';
const table = 'coffee';
const tableKey = 'front_door';
const lowerBound = 'zero';
const upperBound = 'five';
const limit = 20;
const indexPosition = 1;
const indexPosition = 2;
const keyType = 'str';
const expReturn = { data: '12345' };
const reverse = false;
Expand All @@ -386,7 +385,6 @@ describe('JSON RPC', () => {
code,
scope,
table,
table_key: tableKey,
lower_bound: lowerBound,
upper_bound: upperBound,
index_position: indexPosition,
Expand Down Expand Up @@ -414,7 +412,6 @@ describe('JSON RPC', () => {
const code = 'morse';
const scope = 'minty';
const table = 'coffee';
const tableKey = '';
const lowerBound = '';
const upperBound = '';
const limit = 10;
Expand All @@ -434,7 +431,6 @@ describe('JSON RPC', () => {
code,
scope,
table,
table_key: tableKey,
lower_bound: lowerBound,
upper_bound: upperBound,
index_position: indexPosition,
Expand Down