Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning issues during build #1850

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading