Closed PsychoPunkSage closed 3 months ago
I have a question...
Shouldn't THIS PART be assigned to BroadcastDeclareTxnType
instead of BroadcastAddDeployTxnType
.
Cause its a test for DeclareTransaction
not AddDeployTxn
...
Shouldn't THIS PART be assigned to BroadcastDeclareTxnType instead of BroadcastAddDeployTxnType.
Yes, you're correct, nice catch!
You'll also need to remove the switch-case logic in the AddDeclareTransaction method. After that you should be able to fix the tests (which will require updating mock_starknet_addDeclareTransaction (since this function is called in the mock tests))
Done, Updated everything, ready to be merged!!
Here I implemented:
GetContractClass
::>BroadcastDeclareTxnType
interfaceGetConstructorCalldata
andGetContractAddressSalt
::>BroadcastAddDeployTxnType
interfaceAs these are the best distinguishing factors for objects that implements respective interfaces