NethermindEth / starknet.go

Golang Library for StarkNet/Cairo
MIT License
145 stars 105 forks source link

chore ::> method on the BroadcastInvokeTxnType interface to constrain it. #584

Closed PsychoPunkSage closed 3 months ago

PsychoPunkSage commented 3 months ago

closes #569 added InvokeType() string function in BroadcastInvokeTxnType interface. and extrapolated it for BroadcastInvokev0Txn, BroadcastInvokev1Txn and BroadcastInvokev3Txn

PsychoPunkSage commented 3 months ago

Hi @rianhughes Am I doing what was asked in issue https://github.com/NethermindEth/starknet.go/issues/569 ? (I have to update other files which previously considered BroadcastInvokeTxnType as an empty interface.... I will do it once I get to know whether I'm doing things correct way.. )

PsychoPunkSage commented 3 months ago

hi @rianhughes @thiagodeev Please have a look at the changes... I suppose this is what you are looking for.