File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/io/topiacoin/eosrpcadapter Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -257,16 +257,17 @@ public Code getCode(String accountName) throws ChainException {
257
257
Code getCodeResponse = null ;
258
258
259
259
try {
260
- URL getBlockURL = new URL (chainURL , "/v1/chain/get_code" );
260
+ URL getCodeURL = new URL (chainURL , "/v1/chain/get_code" );
261
261
262
262
Map <String , String > requestMap = new HashMap <String , String >();
263
263
requestMap .put ("account_name" , accountName );
264
+ requestMap .put ("code_as_wasm" , "true" );
264
265
265
266
String requestString = _objectMapper .writeValueAsString (requestMap );
266
267
267
268
_log .debug ("Get Code Request: " + requestString );
268
269
269
- EOSRPCAdapter .EOSRPCResponse response = rpcAdapter .postRequest (getBlockURL , requestString );
270
+ EOSRPCAdapter .EOSRPCResponse response = rpcAdapter .postRequest (getCodeURL , requestString );
270
271
271
272
_log .debug ("Get Code Response: " + response );
272
273
You can’t perform that action at this time.
0 commit comments