python - Neo 智能合约 boa.blockchain 模块
问题描述
我想用 neo-python 建立一个智能合约,在我的 sc 中我想有这个模块:
from boa.blockchain.vm.Neo.Storage import GetContext, Get, Put, Delete
但我知道
No module named boa.blockchain
我怎样才能链接这个模块?
解决方案
你忘记放了from
,你也安装了pip install neo-boa
吗?
from boa.blockchain.vm.Neo.Storage import GetContext, Get, Put, Delete
推荐阅读
- html - 如何在文本区域内放置一个浮动按钮?
- python - 函数返回函数
- java - MVP 到 MVVM Android
- graphql - 使用来自数据对象的变量的 GraphQL 查询
- kubernetes - 使用 kubeadm 构建裸机 Kubernetes 集群
- c++ - 用 DWrite 绘制的文字模糊
- javascript - 我的身高已定义但显示为未定义
- jquery - 如何在使用 jQuery 的输入键上添加/删除特定 div 中的类?
- python - Python 文件类型关联不会从命令提示符更改
- nestjs - NestJS with TypeORM:使用自定义存储库时,是否需要服务?