Skip to content

Commit

Permalink
fix: fix address formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 14, 2024
1 parent 7822f56 commit 6620945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ingestor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ export default async function ingestor(req) {
const aliasOptionTypes = ['vote', 'vote-array', 'vote-string', 'proposal', 'delete-proposal'];
if (
snapshot.utils.getFormattedAddress(body.address, networkDataType) !==
snapshot.utils.getFormattedAddress(message.from, networkDataType)
snapshot.utils.getFormattedAddress(
message.from,
snapshot.utils.isEvmAddress(message.from) ? 'evm' : 'starknet'
)
) {
if (!aliasTypes.includes(type) && !aliasOptionTypes.includes(type))
return Promise.reject('wrong from');
Expand Down

0 comments on commit 6620945

Please sign in to comment.