Skip to content

Commit

Permalink
Wrapping boc
Browse files Browse the repository at this point in the history
  • Loading branch information
y3fers0n committed Oct 4, 2024
1 parent 47049ba commit 00744db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/lib/src/main/res/raw/trust_min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/ios-web3-provider/swift/trust-min.js
Git LFS file not shown
5 changes: 3 additions & 2 deletions packages/ton/MobileAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ export class MobileAdapter {
return this.provider.internalRequest<T>('signMessage', params);

case 'ton_sendTransaction':
case 'tonConnect_sendTransaction':
case 'tonConnect_sendTransaction': {
const res = await this.provider.internalRequest<string>(
'signTransaction',
MobileAdapter.mapToCamelCase((params as object[])[0] as ITransaction),
);

const { nonce, hash } = JSON.parse(res);

return method === 'ton_sendTransaction' ? nonce : hash;
return method === 'ton_sendTransaction' ? nonce : { boc: hash };
}

case 'ton_requestAccounts': {
const res = await this.provider.internalRequest<string>(
Expand Down

0 comments on commit 00744db

Please sign in to comment.