Skip to content

Conversation

@andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Apr 1, 2022

  • Removed NetworkConfig.getDefault() and NetworkConfig.sync(). Instead, one should use let networkConfig = await provider.getNetworkConfig().
  • Constructor of Transaction now requires chainID, as well.
  • Added Interaction.withChainID() - must be used before calling buildTransaction().

@andreibancioiu andreibancioiu self-assigned this Apr 1, 2022

setChainID(chainID: ChainID) {
this.chainID = chainID;
this.doAfterPropertySetter();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a side effect that the user does not expect - I remember debugging with @arhtudormorar quite a lot what was the problem with a transaction, and it was missing the signature after setting some properties.
If a user changes something on a signed transaction, the signature will be invalid even if it's set or if it's empty, so I don't know if we should force the reset for them

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, removed doAfterPropertySetter().

@andreibancioiu andreibancioiu merged commit a198236 into main Apr 4, 2022
@andreibancioiu andreibancioiu deleted the simplify-network-config branch April 4, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants