Skip to content

Commit

Permalink
fix(tx-builder): remove invalid oracle tx type in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Mar 13, 2024
1 parent 105a496 commit 78e7c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tx/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ validators.push(
// TODO: revert nonce check
// TODO: ensure nonce valid when paying for own tx
(tx, { consensusProtocolVersion }) => {
const oracleCall = Tag.Oracle === tx.tag || Tag.OracleRegisterTx === tx.tag;
const oracleCall = Tag.OracleRegisterTx === tx.tag;
const contractCreate = Tag.ContractCreateTx === tx.tag || Tag.GaAttachTx === tx.tag;
const contractCall = Tag.ContractCallTx === tx.tag || Tag.GaMetaTx === tx.tag;
const type = (oracleCall ? 'oracle-call' : null)
Expand Down

0 comments on commit 78e7c48

Please sign in to comment.