Skip to content

Commit 191fa74

Browse files
committed
remove unnecessary zero padding
1 parent 0aeb6c6 commit 191fa74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/smartContracts/smartContractTransactionsFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Logger } from "../core/logger";
1111
import { TokenComputer, TokenTransfer } from "../core/tokens";
1212
import { TokenTransfersDataBuilder } from "../core/tokenTransfersDataBuilder";
1313
import { Transaction } from "../core/transaction";
14-
import { byteArrayToHex, utf8ToHex, zeroPadStringIfOddLength } from "../core/utils.codec";
14+
import { byteArrayToHex, utf8ToHex } from "../core/utils.codec";
1515
import * as resources from "./resources";
1616

1717
interface IConfig {
@@ -227,7 +227,7 @@ export class SmartContractTransactionsFactory extends BaseFactory {
227227
}
228228

229229
if (this.areArgsBuffers(args)) {
230-
return args.map((arg) => zeroPadStringIfOddLength(Buffer.from(arg).toString("hex")));
230+
return args.map((arg) => Buffer.from(arg).toString("hex"));
231231
}
232232

233233
throw new Err("Can't convert args to TypedValues");

0 commit comments

Comments
 (0)