File tree Expand file tree Collapse file tree
src/main/java/io/topiacoin/eosrpcadapter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,16 +257,17 @@ public Code getCode(String accountName) throws ChainException {
257257 Code getCodeResponse = null ;
258258
259259 try {
260- URL getBlockURL = new URL (chainURL , "/v1/chain/get_code" );
260+ URL getCodeURL = new URL (chainURL , "/v1/chain/get_code" );
261261
262262 Map <String , String > requestMap = new HashMap <String , String >();
263263 requestMap .put ("account_name" , accountName );
264+ requestMap .put ("code_as_wasm" , "true" );
264265
265266 String requestString = _objectMapper .writeValueAsString (requestMap );
266267
267268 _log .debug ("Get Code Request: " + requestString );
268269
269- EOSRPCAdapter .EOSRPCResponse response = rpcAdapter .postRequest (getBlockURL , requestString );
270+ EOSRPCAdapter .EOSRPCResponse response = rpcAdapter .postRequest (getCodeURL , requestString );
270271
271272 _log .debug ("Get Code Response: " + response );
272273
You can’t perform that action at this time.
0 commit comments