NethermindEth / starknet.go

Golang Library for StarkNet/Cairo
MIT License
143 stars 95 forks source link

Constrain BroadcastInvokeTxnType #569

Closed rianhughes closed 4 days ago

rianhughes commented 1 month ago

Define a method on the BroadcastInvokeTxnType interface and implement if for the three different BroadcastInvokevXTnx types. This improves UX so that users won't be able to pass anything in like they are now. Bonus points for simplicity!