Skip to content

Commit

Permalink
Fix warning issues during build (#1850)
Browse files Browse the repository at this point in the history
* Fix warning issues during build

Signed-off-by: ochikov <[email protected]>

* add es-lint to the last warning because we cannot remove it

Signed-off-by: Petar Tonev <[email protected]>

---------

Signed-off-by: ochikov <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Co-authored-by: Petar Tonev <[email protected]>
  • Loading branch information
ochikov and petreze authored Sep 4, 2023
1 parent 3f74615 commit aa69894
Show file tree
Hide file tree
Showing 11 changed files with 129 additions and 41 deletions.
2 changes: 1 addition & 1 deletion packages/proto/src/proto
89 changes: 69 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 24 additions & 8 deletions src/account/AccountAllowanceAdjustTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,19 @@ export default class AccountAllowanceAdjustTransaction extends Transaction {
typeof spenderAccountId === "string"
? AccountId.fromString(spenderAccountId)
: spenderAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
spenderAccountId.toSolidityAddress()
)
: spenderAccountId,
ownerAccountId:
typeof ownerAccountId === "string"
? AccountId.fromString(ownerAccountId)
: ownerAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
ownerAccountId.toSolidityAddress()
)
: ownerAccountId,
Expand Down Expand Up @@ -216,15 +220,19 @@ export default class AccountAllowanceAdjustTransaction extends Transaction {
typeof spenderAccountId === "string"
? AccountId.fromString(spenderAccountId)
: spenderAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
spenderAccountId.toSolidityAddress()
)
: spenderAccountId,
ownerAccountId:
typeof ownerAccountId === "string"
? AccountId.fromString(ownerAccountId)
: ownerAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
ownerAccountId.toSolidityAddress()
)
: ownerAccountId,
Expand Down Expand Up @@ -296,15 +304,19 @@ export default class AccountAllowanceAdjustTransaction extends Transaction {
typeof spenderAccountId === "string"
? AccountId.fromString(spenderAccountId)
: spenderAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
spenderAccountId.toSolidityAddress()
)
: spenderAccountId;
const owner =
typeof ownerAccountId === "string"
? AccountId.fromString(ownerAccountId)
: ownerAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
ownerAccountId.toSolidityAddress()
)
: ownerAccountId;
Expand Down Expand Up @@ -458,7 +470,9 @@ export default class AccountAllowanceAdjustTransaction extends Transaction {
? typeof ownerAccountId === "string"
? AccountId.fromString(ownerAccountId)
: ownerAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
ownerAccountId.toSolidityAddress()
)
: ownerAccountId
Expand All @@ -467,7 +481,9 @@ export default class AccountAllowanceAdjustTransaction extends Transaction {
typeof spenderAccountId === "string"
? AccountId.fromString(spenderAccountId)
: spenderAccountId instanceof ContractId
? AccountId.fromSolidityAddress(
? AccountId.fromEvmAddress(
0,
0,
spenderAccountId.toSolidityAddress()
)
: spenderAccountId,
Expand Down
Loading

0 comments on commit aa69894

Please sign in to comment.