Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
白 鹿
contract-sdk-go
Commits
989950e8
Commit
989950e8
authored
Feb 15, 2023
by
gh lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add sender comments
--bug=0
parent
bb7972f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sdk/sdk_interface.go
sdk/sdk_interface.go
+4
-1
No files found.
sdk/sdk_interface.go
View file @
989950e8
...
@@ -207,7 +207,10 @@ type SDKInterface interface {
...
@@ -207,7 +207,10 @@ type SDKInterface interface {
// Deprecated
// Deprecated
GetSenderAddr
()
(
string
,
error
)
GetSenderAddr
()
(
string
,
error
)
// Sender Get the address of the sender address, if the contract is called by another contract, the result will be
// Sender Get the address of the sender address, if the contract is called by another contract, the result will be
// the caller contract's address
// the caller contract's address.
// Sender will return system contract address when executing the init or upgrade method (If you need to return the
// user address, we recommend using Origin method here), because the init and upgrade methods are cross-contract
// txs (system contract -> common contract).
// @return1: sender address
// @return1: sender address
// @return2: 获取错误信息
// @return2: 获取错误信息
Sender
()
(
string
,
error
)
Sender
()
(
string
,
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment