From ae68836382f61279b62e19da653717fda9be0e98 Mon Sep 17 00:00:00 2001 From: dafuga Date: Fri, 13 Oct 2023 19:30:00 -0700 Subject: [PATCH] cleanup: using consistent casing for method names --- src/account.ts | 4 ++-- test/tests/account.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/account.ts b/src/account.ts index 6420468..19ab86f 100644 --- a/src/account.ts +++ b/src/account.ts @@ -141,7 +141,7 @@ export class Account { }) } - linkauth(contract: NameType, action: NameType, requiredPermission: NameType): Action { + linkAuth(contract: NameType, action: NameType, requiredPermission: NameType): Action { return this.systemContract.action('linkauth', { account: this.accountName, code: contract, @@ -151,7 +151,7 @@ export class Account { }) } - unlinkauth(contract: NameType, action: NameType): Action { + unlinkAuth(contract: NameType, action: NameType): Action { return this.systemContract.action('unlinkauth', { account: this.accountName, code: contract, diff --git a/test/tests/account.ts b/test/tests/account.ts index bb6add3..dfd1248 100644 --- a/test/tests/account.ts +++ b/test/tests/account.ts @@ -217,8 +217,8 @@ suite('Account', function () { }) }) - test('linkauth', () => { - const action = testAccount.linkauth('eosio.token', 'transfer', 'active') + test('linkAuth', () => { + const action = testAccount.linkAuth('eosio.token', 'transfer', 'active') assert.isTrue(action.account.equals('eosio')) assert.isTrue(action.name.equals('linkauth')) assert.isTrue(action.authorization[0].equals(PlaceholderAuth)) @@ -230,8 +230,8 @@ suite('Account', function () { assert.isTrue(decoded.requirement.equals('active')) }) - test('unlinkauth', () => { - const action = testAccount.unlinkauth('eosio.token', 'transfer') + test('unlinkAuth', () => { + const action = testAccount.unlinkAuth('eosio.token', 'transfer') assert.isTrue(action.account.equals('eosio')) assert.isTrue(action.name.equals('unlinkauth')) assert.isTrue(action.authorization[0].equals(PlaceholderAuth))