You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was attempting to make a read only smart contract call to the Dusa Factory Contract on Buildnet using the gRPC APIs and ran into an error.
What happened:
I executed a read only call on a contract without specifying a caller address and received an error:
rpc error: code = Internal desc = Runtime error: spending address <RANDOM_ADDRESS> not found
I executed a read only call on a contract without specifying a fee and received an error:
rpc error: code = InvalidArgument desc = fee is too low provided: 0 , minimal_fees required: 0.01
What I expected:
The following comments mark the Address and Fee fields as optional so I expected that I could make a read-only contract call without specifying an address or a fee.
// fee paid by the caller when the call is processed (optional)
Since read-only calls do not change the state of the contract or ledger I am not sure why I cannot make a read only call with addresses that do not yet have associated datastore entries or without specifying a fee?
The text was updated successfully, but these errors were encountered:
edatts
changed the title
Misleading field comment
ReadOnlyCall errors when omitting optional parameters.
Apr 27, 2024
Hello, I was attempting to make a read only smart contract call to the Dusa Factory Contract on Buildnet using the gRPC APIs and ran into an error.
What happened:
I executed a read only call on a contract without specifying a caller address and received an error:
I executed a read only call on a contract without specifying a fee and received an error:
What I expected:
The following comments mark the
Address
andFee
fields as optional so I expected that I could make a read-only contract call without specifying an address or a fee.massa-proto/proto/commons/massa/model/v1/execution.proto
Line 390 in 20972cd
massa-proto/proto/commons/massa/model/v1/execution.proto
Line 392 in 20972cd
Since read-only calls do not change the state of the contract or ledger I am not sure why I cannot make a read only call with addresses that do not yet have associated datastore entries or without specifying a fee?
The text was updated successfully, but these errors were encountered: