Skip to content

Commit

Permalink
Adds TODO comments and set a pointer to Marshal method
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev committed Nov 8, 2024
1 parent b7ce944 commit 0d21cbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rpc/call_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func TestCall(t *testing.T) {
}[testEnv]

for _, test := range testSet {
// TODO: create a test case for the new 'CONTRACT_EXECUTION_ERROR' type"
require := require.New(t)
output, err := testConfig.provider.Call(context.Background(), FunctionCall(test.FunctionCall), test.BlockID)
if test.ExpectedError != nil {
Expand Down
1 change: 1 addition & 0 deletions rpc/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ func TestEstimateMessageFee(t *testing.T) {

func TestEstimateFee(t *testing.T) {
//TODO: upgrade the mainnet and testnet test cases before merge
//TODO: create a test case for the new 'CONTRACT_EXECUTION_ERROR' type

testConfig := beforeEach(t)

Expand Down
2 changes: 1 addition & 1 deletion rpc/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (rpcData *RPCData) UnmarshalJSON(data []byte) error {
return fmt.Errorf("failed to unmarshal RPCData")
}

func (rpcData RPCData) MarshalJSON() ([]byte, error) {
func (rpcData *RPCData) MarshalJSON() ([]byte, error) {
var temp any

if rpcData.ContractErrorData != nil {
Expand Down

0 comments on commit 0d21cbd

Please sign in to comment.