Skip to content

Commit

Permalink
Convert address to proper mixed case checksum when decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Jun 7, 2024
1 parent 79f48c5 commit 07509ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transaction/quai-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
zeroPadValue,
} from '../utils/index.js';
import { decodeProtoTransaction, encodeProtoTransaction } from '../encoding/index.js';
import { recoverAddress, validateAddress } from '../address/index.js';
import { getAddress, recoverAddress, validateAddress } from '../address/index.js';
import { formatNumber, handleNumber } from '../providers/format.js';
import { ProtoTransaction } from './abstract-transaction.js';
import { Zone } from '../constants';
Expand Down Expand Up @@ -486,7 +486,7 @@ export class QuaiTransaction extends AbstractTransaction<Signature> implements Q

if (protoTx.to !== null) {
const toAddr = hexlify(protoTx.to!);
tx.to = toAddr;
tx.to = getAddress(toAddr);
}

tx.type = protoTx.type;
Expand Down

0 comments on commit 07509ac

Please sign in to comment.