Skip to content

Commit

Permalink
feat: use v0 encoding constant for encode configuralbes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbate committed Apr 11, 2024
1 parent b3b9384 commit 595866f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/abi-coder/src/Interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AbiCoder } from './AbiCoder';
import { FunctionFragment } from './FunctionFragment';
import type { InputValue } from './encoding/coders/AbstractCoder';
import type { JsonAbi, JsonAbiConfigurable } from './types/JsonAbi';
import { ENCODING_V0 } from './utils/constants';
import { findTypeById } from './utils/json-abi';

export class Interface<TAbi extends JsonAbi = JsonAbi> {
Expand Down Expand Up @@ -99,6 +100,7 @@ export class Interface<TAbi extends JsonAbi = JsonAbi> {

return AbiCoder.encode(this.jsonAbi, configurable.configurableType, value, {
isRightPadded: true,
encoding: ENCODING_V0,
});
}

Expand Down

0 comments on commit 595866f

Please sign in to comment.