polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
241 stars 115 forks source link

upload_wasm invalid #313

Closed deuszx closed 1 year ago

deuszx commented 1 year ago

There is not put_code function in the Contracts pallet. Instead, it's called upload_code.

arjanz commented 1 year ago

You're right, put_code got removed in https://github.com/paritytech/substrate/commit/dc02c65a5c0001c2d87452cbdac47451f2c52eac

I'll make a PR for this