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
I am facing error while i use
// abi = json.load(
["contracts"]["SimpleStorage.sol"]["InfoStorage"]["metadat"]["ouput"]["abi"]
)
the error is TypeError: list indices must be integers or slices, not str
But when i use
abi = compiled_code["contracts"]["SimpleStorage.sol"]["InfoStorage"]["abi"]
it is okay i am getting the abi
my question is my approach is correct or i am doing something wrong
and what will be the difference if i don't use metadata and output
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am facing error while i use
// abi = json.load(
["contracts"]["SimpleStorage.sol"]["InfoStorage"]["metadat"]["ouput"]["abi"]
)
the error is TypeError: list indices must be integers or slices, not str
But when i use
abi = compiled_code["contracts"]["SimpleStorage.sol"]["InfoStorage"]["abi"]
it is okay i am getting the abi
my question is my approach is correct or i am doing something wrong
and what will be the difference if i don't use metadata and output
Beta Was this translation helpful? Give feedback.
All reactions